GeezerVison is showing github.com — deps: update V8 to 4.4.63.26 · nodejs/node@3d3c687
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: deps/v8/include/v8-version.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 11 | 11 | #define V8_MAJOR_VERSION 4 | 12 | 12 | #define V8_MINOR_VERSION 4 | 13 | 13 | #define V8_BUILD_NUMBER 63 | 14 | | -#define V8_PATCH_LEVEL 12 | | 14 | +#define V8_PATCH_LEVEL 26 | 15 | 15 |
| 16 | 16 | // Use 1 for candidates and 0 otherwise. | 17 | 17 | // (Boolean macro values are not supported by all preprocessors.) | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/api.cc +3-1Lines changed: 3 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -345,12 +345,14 @@ StartupData V8::CreateSnapshotDataBlob(const char* custom_source) { | 345 | 345 | base::ElapsedTimer timer; | 346 | 346 | timer.Start(); | 347 | 347 | Isolate::Scope isolate_scope(isolate); | | 348 | + internal_isolate->set_creating_default_snapshot(true); | 348 | 349 | internal_isolate->Init(NULL); | 349 | 350 | Persistent<Context> context; | 350 | 351 | i::Snapshot::Metadata metadata; | 351 | 352 | { | 352 | 353 | HandleScope handle_scope(isolate); | 353 | 354 | Handle<Context> new_context = Context::New(isolate); | | 355 | + internal_isolate->set_creating_default_snapshot(false); | 354 | 356 | context.Reset(isolate, new_context); | 355 | 357 | if (custom_source != NULL) { | 356 | 358 | metadata.set_embeds_script(true); | @@ -379,7 +381,7 @@ StartupData V8::CreateSnapshotDataBlob(const char* custom_source) { | 379 | 381 | i::SnapshotByteSink context_sink; | 380 | 382 | i::PartialSerializer context_ser(internal_isolate, &ser, &context_sink); | 381 | 383 | context_ser.Serialize(&raw_context); | 382 | | - ser.SerializeWeakReferences(); | | 384 | + ser.SerializeWeakReferencesAndDeferred(); | 383 | 385 |
| 384 | 386 | result = i::Snapshot::CreateSnapshotBlob(ser, context_ser, metadata); | 385 | 387 | } | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/arm/assembler-arm-inl.h +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -432,9 +432,7 @@ void Assembler::CheckBuffer() { | 432 | 432 | if (buffer_space() <= kGap) { | 433 | 433 | GrowBuffer(); | 434 | 434 | } | 435 | | - if (pc_offset() >= next_buffer_check_) { | 436 | | - CheckConstPool(false, true); | 437 | | - } | | 435 | + MaybeCheckConstPool(); | 438 | 436 | } | 439 | 437 |
| 440 | 438 |
| |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/arm/assembler-arm.cc +21-2Lines changed: 21 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1298,7 +1298,7 @@ void Assembler::addrmod5(Instr instr, CRegister crd, const MemOperand& x) { | 1298 | 1298 | } | 1299 | 1299 |
| 1300 | 1300 |
| 1301 | | -int Assembler::branch_offset(Label* L, bool jump_elimination_allowed) { | | 1301 | +int Assembler::branch_offset(Label* L) { | 1302 | 1302 | int target_pos; | 1303 | 1303 | if (L->is_bound()) { | 1304 | 1304 | target_pos = L->pos(); | @@ -1315,7 +1315,8 @@ int Assembler::branch_offset(Label* L, bool jump_elimination_allowed) { | 1315 | 1315 |
| 1316 | 1316 | // Block the emission of the constant pool, since the branch instruction must | 1317 | 1317 | // be emitted at the pc offset recorded by the label. | 1318 | | - BlockConstPoolFor(1); | | 1318 | + if (!is_const_pool_blocked()) BlockConstPoolFor(1); | | 1319 | + | 1319 | 1320 | return target_pos - (pc_offset() + kPcLoadDelta); | 1320 | 1321 | } | 1321 | 1322 |
| @@ -1367,6 +1368,24 @@ void Assembler::bx(Register target, Condition cond) { // v5 and above, plus v4t | 1367 | 1368 | } | 1368 | 1369 |
| 1369 | 1370 |
| | 1371 | +void Assembler::b(Label* L, Condition cond) { | | 1372 | + CheckBuffer(); | | 1373 | + b(branch_offset(L), cond); | | 1374 | +} | | 1375 | + | | 1376 | + | | 1377 | +void Assembler::bl(Label* L, Condition cond) { | | 1378 | + CheckBuffer(); | | 1379 | + bl(branch_offset(L), cond); | | 1380 | +} | | 1381 | + | | 1382 | + | | 1383 | +void Assembler::blx(Label* L) { | | 1384 | + CheckBuffer(); | | 1385 | + blx(branch_offset(L)); | | 1386 | +} | | 1387 | + | | 1388 | + | 1370 | 1389 | // Data-processing instructions. | 1371 | 1390 |
| 1372 | 1391 | void Assembler::and_(Register dst, Register src1, const Operand& src2, | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/arm/assembler-arm.h +12-8Lines changed: 12 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -746,7 +746,7 @@ class Assembler : public AssemblerBase { | 746 | 746 | // Returns the branch offset to the given label from the current code position | 747 | 747 | // Links the label to the current position if it is still unbound | 748 | 748 | // Manages the jump elimination optimization if the second parameter is true. | 749 | | - int branch_offset(Label* L, bool jump_elimination_allowed); | | 749 | + int branch_offset(Label* L); | 750 | 750 |
| 751 | 751 | // Returns true if the given pc address is the start of a constant pool load | 752 | 752 | // instruction sequence. | @@ -852,13 +852,11 @@ class Assembler : public AssemblerBase { | 852 | 852 | void bx(Register target, Condition cond = al); // v5 and above, plus v4t | 853 | 853 |
| 854 | 854 | // Convenience branch instructions using labels | 855 | | - void b(Label* L, Condition cond = al) { | 856 | | - b(branch_offset(L, cond == al), cond); | 857 | | - } | 858 | | - void b(Condition cond, Label* L) { b(branch_offset(L, cond == al), cond); } | 859 | | - void bl(Label* L, Condition cond = al) { bl(branch_offset(L, false), cond); } | 860 | | - void bl(Condition cond, Label* L) { bl(branch_offset(L, false), cond); } | 861 | | - void blx(Label* L) { blx(branch_offset(L, false)); } // v5 and above | | 855 | + void b(Label* L, Condition cond = al); | | 856 | + void b(Condition cond, Label* L) { b(L, cond); } | | 857 | + void bl(Label* L, Condition cond = al); | | 858 | + void bl(Condition cond, Label* L) { bl(L, cond); } | | 859 | + void blx(Label* L); // v5 and above | 862 | 860 |
| 863 | 861 | // Data-processing instructions | 864 | 862 |
| @@ -1536,6 +1534,12 @@ class Assembler : public AssemblerBase { | 1536 | 1534 | // Check if is time to emit a constant pool. | 1537 | 1535 | void CheckConstPool(bool force_emit, bool require_jump); | 1538 | 1536 |
| | 1537 | + void MaybeCheckConstPool() { | | 1538 | + if (pc_offset() >= next_buffer_check_) { | | 1539 | + CheckConstPool(false, true); | | 1540 | + } | | 1541 | + } | | 1542 | + | 1539 | 1543 | // Allocate a constant pool of the correct size for the generated code. | 1540 | 1544 | Handle<ConstantPoolArray> NewConstantPool(Isolate* isolate); | 1541 | 1545 |
| |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/arm64/code-stubs-arm64.cc +9-23Lines changed: 9 additions & 23 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2286,27 +2286,16 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { | 2286 | 2286 | Register last_match_info_elements = x21; | 2287 | 2287 | Register code_object = x22; | 2288 | 2288 |
| 2289 | | - // TODO(jbramley): Is it necessary to preserve these? I don't think ARM does. | 2290 | | - CPURegList used_callee_saved_registers(subject, | 2291 | | - regexp_data, | 2292 | | - last_match_info_elements, | 2293 | | - code_object); | 2294 | | - __ PushCPURegList(used_callee_saved_registers); | 2295 | | - | 2296 | 2289 | // Stack frame. | 2297 | | - // jssp[0] : x19 | 2298 | | - // jssp[8] : x20 | 2299 | | - // jssp[16]: x21 | 2300 | | - // jssp[24]: x22 | 2301 | | - // jssp[32]: last_match_info (JSArray) | 2302 | | - // jssp[40]: previous index | 2303 | | - // jssp[48]: subject string | 2304 | | - // jssp[56]: JSRegExp object | 2305 | | - | 2306 | | - const int kLastMatchInfoOffset = 4 * kPointerSize; | 2307 | | - const int kPreviousIndexOffset = 5 * kPointerSize; | 2308 | | - const int kSubjectOffset = 6 * kPointerSize; | 2309 | | - const int kJSRegExpOffset = 7 * kPointerSize; | | 2290 | + // jssp[00]: last_match_info (JSArray) | | 2291 | + // jssp[08]: previous index | | 2292 | + // jssp[16]: subject string | | 2293 | + // jssp[24]: JSRegExp object | | 2294 | + | | 2295 | + const int kLastMatchInfoOffset = 0 * kPointerSize; | | 2296 | + const int kPreviousIndexOffset = 1 * kPointerSize; | | 2297 | + const int kSubjectOffset = 2 * kPointerSize; | | 2298 | + const int kJSRegExpOffset = 3 * kPointerSize; | 2310 | 2299 |
| 2311 | 2300 | // Ensure that a RegExp stack is allocated. | 2312 | 2301 | ExternalReference address_of_regexp_stack_memory_address = | @@ -2673,7 +2662,6 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { | 2673 | 2662 |
| 2674 | 2663 | // Return last match info. | 2675 | 2664 | __ Peek(x0, kLastMatchInfoOffset); | 2676 | | - __ PopCPURegList(used_callee_saved_registers); | 2677 | 2665 | // Drop the 4 arguments of the stub from the stack. | 2678 | 2666 | __ Drop(4); | 2679 | 2667 | __ Ret(); | @@ -2696,13 +2684,11 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { | 2696 | 2684 |
| 2697 | 2685 | __ Bind(&failure); | 2698 | 2686 | __ Mov(x0, Operand(isolate()->factory()->null_value())); | 2699 | | - __ PopCPURegList(used_callee_saved_registers); | 2700 | 2687 | // Drop the 4 arguments of the stub from the stack. | 2701 | 2688 | __ Drop(4); | 2702 | 2689 | __ Ret(); | 2703 | 2690 |
| 2704 | 2691 | __ Bind(&runtime); | 2705 | | - __ PopCPURegList(used_callee_saved_registers); | 2706 | 2692 | __ TailCallRuntime(Runtime::kRegExpExec, 4, 1); | 2707 | 2693 |
| 2708 | 2694 | // Deferred code for string handling. | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/bootstrapper.cc +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -2813,6 +2813,7 @@ void Genesis::TransferNamedProperties(Handle<JSObject> from, | 2813 | 2813 | if (value->IsPropertyCell()) { | 2814 | 2814 | value = handle(PropertyCell::cast(*value)->value(), isolate()); | 2815 | 2815 | } | | 2816 | + if (value->IsTheHole()) continue; | 2816 | 2817 | PropertyDetails details = properties->DetailsAt(i); | 2817 | 2818 | DCHECK_EQ(kData, details.kind()); | 2818 | 2819 | JSObject::AddProperty(to, key, value, details.attributes()); | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/compiler/arm/code-generator-arm.cc +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -316,6 +316,8 @@ void CodeGenerator::AssembleDeconstructActivationRecord() { | 316 | 316 | void CodeGenerator::AssembleArchInstruction(Instruction* instr) { | 317 | 317 | ArmOperandConverter i(this, instr); | 318 | 318 |
| | 319 | + masm()->MaybeCheckConstPool(); | | 320 | + | 319 | 321 | switch (ArchOpcodeField::decode(instr->opcode())) { | 320 | 322 | case kArchCallCodeObject: { | 321 | 323 | EnsureSpaceForLazyDeopt(); | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/flag-definitions.h +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -199,7 +199,7 @@ DEFINE_IMPLICATION(es_staging, harmony) | 199 | 199 | #define HARMONY_STAGED(V) \ | 200 | 200 | V(harmony_rest_parameters, "harmony rest parameters") \ | 201 | 201 | V(harmony_spreadcalls, "harmony spread-calls") \ | 202 | | - V(harmony_tostring, "harmony toString") \ | | 202 | + V(harmony_tostring, "harmony toString") | 203 | 203 |
| 204 | 204 | // Features that are shipping (turned on by default, but internal flag remains). | 205 | 205 | #define HARMONY_SHIPPING(V) \ | |
Collapse file Copy file name to clipboardExpand all lines: deps/v8/src/hydrogen.cc +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -5219,9 +5219,12 @@ void HOptimizedGraphBuilder::BuildForInBody(ForInStatement* stmt, | 5219 | 5219 | HValue* function = AddLoadJSBuiltin(Builtins::FILTER_KEY); | 5220 | 5220 | Add<HPushArguments>(enumerable, key); | 5221 | 5221 | key = Add<HInvokeFunction>(function, 2); | | 5222 | + Push(key); | | 5223 | + Add<HSimulate>(stmt->FilterId()); | | 5224 | + key = Pop(); | 5222 | 5225 | Bind(each_var, key); | 5223 | | - Add<HSimulate>(stmt->AssignmentId()); | 5224 | 5226 | Add<HCheckHeapObject>(key); | | 5227 | + Add<HSimulate>(stmt->AssignmentId()); | 5225 | 5228 | } | 5226 | 5229 |
| 5227 | 5230 | BreakAndContinueInfo break_info(stmt, scope(), 5); | |
|