| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 Operand(isolate()->factory()->home_object_symbol())); | 1362 Operand(isolate()->factory()->home_object_symbol())); |
| 1363 __ ldr(StoreDescriptor::ValueRegister(), | 1363 __ ldr(StoreDescriptor::ValueRegister(), |
| 1364 MemOperand(sp, offset * kPointerSize)); | 1364 MemOperand(sp, offset * kPointerSize)); |
| 1365 if (FLAG_vector_stores) EmitLoadStoreICSlot(slot); | 1365 if (FLAG_vector_stores) EmitLoadStoreICSlot(slot); |
| 1366 CallStoreIC(); | 1366 CallStoreIC(); |
| 1367 } | 1367 } |
| 1368 } | 1368 } |
| 1369 | 1369 |
| 1370 | 1370 |
| 1371 void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy, | 1371 void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy, |
| 1372 TypeofState typeof_state, | 1372 TypeofMode typeof_mode, |
| 1373 Label* slow) { | 1373 Label* slow) { |
| 1374 Register current = cp; | 1374 Register current = cp; |
| 1375 Register next = r1; | 1375 Register next = r1; |
| 1376 Register temp = r2; | 1376 Register temp = r2; |
| 1377 | 1377 |
| 1378 Scope* s = scope(); | 1378 Scope* s = scope(); |
| 1379 while (s != NULL) { | 1379 while (s != NULL) { |
| 1380 if (s->num_heap_slots() > 0) { | 1380 if (s->num_heap_slots() > 0) { |
| 1381 if (s->calls_sloppy_eval()) { | 1381 if (s->calls_sloppy_eval()) { |
| 1382 // Check that extension is NULL. | 1382 // Check that extension is NULL. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1411 __ tst(temp, temp); | 1411 __ tst(temp, temp); |
| 1412 __ b(ne, slow); | 1412 __ b(ne, slow); |
| 1413 // Load next context in chain. | 1413 // Load next context in chain. |
| 1414 __ ldr(next, ContextOperand(next, Context::PREVIOUS_INDEX)); | 1414 __ ldr(next, ContextOperand(next, Context::PREVIOUS_INDEX)); |
| 1415 __ b(&loop); | 1415 __ b(&loop); |
| 1416 __ bind(&fast); | 1416 __ bind(&fast); |
| 1417 } | 1417 } |
| 1418 | 1418 |
| 1419 // All extension objects were empty and it is safe to use a normal global | 1419 // All extension objects were empty and it is safe to use a normal global |
| 1420 // load machinery. | 1420 // load machinery. |
| 1421 EmitGlobalVariableLoad(proxy, typeof_state); | 1421 EmitGlobalVariableLoad(proxy, typeof_mode); |
| 1422 } | 1422 } |
| 1423 | 1423 |
| 1424 | 1424 |
| 1425 MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, | 1425 MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, |
| 1426 Label* slow) { | 1426 Label* slow) { |
| 1427 DCHECK(var->IsContextSlot()); | 1427 DCHECK(var->IsContextSlot()); |
| 1428 Register context = cp; | 1428 Register context = cp; |
| 1429 Register next = r3; | 1429 Register next = r3; |
| 1430 Register temp = r4; | 1430 Register temp = r4; |
| 1431 | 1431 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1448 __ b(ne, slow); | 1448 __ b(ne, slow); |
| 1449 | 1449 |
| 1450 // This function is used only for loads, not stores, so it's safe to | 1450 // This function is used only for loads, not stores, so it's safe to |
| 1451 // return an cp-based operand (the write barrier cannot be allowed to | 1451 // return an cp-based operand (the write barrier cannot be allowed to |
| 1452 // destroy the cp register). | 1452 // destroy the cp register). |
| 1453 return ContextOperand(context, var->index()); | 1453 return ContextOperand(context, var->index()); |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 | 1456 |
| 1457 void FullCodeGenerator::EmitDynamicLookupFastCase(VariableProxy* proxy, | 1457 void FullCodeGenerator::EmitDynamicLookupFastCase(VariableProxy* proxy, |
| 1458 TypeofState typeof_state, | 1458 TypeofMode typeof_mode, |
| 1459 Label* slow, | 1459 Label* slow, Label* done) { |
| 1460 Label* done) { | |
| 1461 // Generate fast-case code for variables that might be shadowed by | 1460 // Generate fast-case code for variables that might be shadowed by |
| 1462 // eval-introduced variables. Eval is used a lot without | 1461 // eval-introduced variables. Eval is used a lot without |
| 1463 // introducing variables. In those cases, we do not want to | 1462 // introducing variables. In those cases, we do not want to |
| 1464 // perform a runtime call for all variables in the scope | 1463 // perform a runtime call for all variables in the scope |
| 1465 // containing the eval. | 1464 // containing the eval. |
| 1466 Variable* var = proxy->var(); | 1465 Variable* var = proxy->var(); |
| 1467 if (var->mode() == DYNAMIC_GLOBAL) { | 1466 if (var->mode() == DYNAMIC_GLOBAL) { |
| 1468 EmitLoadGlobalCheckExtensions(proxy, typeof_state, slow); | 1467 EmitLoadGlobalCheckExtensions(proxy, typeof_mode, slow); |
| 1469 __ jmp(done); | 1468 __ jmp(done); |
| 1470 } else if (var->mode() == DYNAMIC_LOCAL) { | 1469 } else if (var->mode() == DYNAMIC_LOCAL) { |
| 1471 Variable* local = var->local_if_not_shadowed(); | 1470 Variable* local = var->local_if_not_shadowed(); |
| 1472 __ ldr(r0, ContextSlotOperandCheckExtensions(local, slow)); | 1471 __ ldr(r0, ContextSlotOperandCheckExtensions(local, slow)); |
| 1473 if (local->mode() == LET || local->mode() == CONST || | 1472 if (local->mode() == LET || local->mode() == CONST || |
| 1474 local->mode() == CONST_LEGACY) { | 1473 local->mode() == CONST_LEGACY) { |
| 1475 __ CompareRoot(r0, Heap::kTheHoleValueRootIndex); | 1474 __ CompareRoot(r0, Heap::kTheHoleValueRootIndex); |
| 1476 if (local->mode() == CONST_LEGACY) { | 1475 if (local->mode() == CONST_LEGACY) { |
| 1477 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex, eq); | 1476 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex, eq); |
| 1478 } else { // LET || CONST | 1477 } else { // LET || CONST |
| 1479 __ b(ne, done); | 1478 __ b(ne, done); |
| 1480 __ mov(r0, Operand(var->name())); | 1479 __ mov(r0, Operand(var->name())); |
| 1481 __ push(r0); | 1480 __ push(r0); |
| 1482 __ CallRuntime(Runtime::kThrowReferenceError, 1); | 1481 __ CallRuntime(Runtime::kThrowReferenceError, 1); |
| 1483 } | 1482 } |
| 1484 } | 1483 } |
| 1485 __ jmp(done); | 1484 __ jmp(done); |
| 1486 } | 1485 } |
| 1487 } | 1486 } |
| 1488 | 1487 |
| 1489 | 1488 |
| 1490 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1489 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
| 1491 TypeofState typeof_state) { | 1490 TypeofMode typeof_mode) { |
| 1492 Variable* var = proxy->var(); | 1491 Variable* var = proxy->var(); |
| 1493 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1492 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
| 1494 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1493 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
| 1495 if (var->IsGlobalSlot()) { | 1494 if (var->IsGlobalSlot()) { |
| 1496 DCHECK(var->index() > 0); | 1495 DCHECK(var->index() > 0); |
| 1497 DCHECK(var->IsStaticGlobalObjectProperty()); | 1496 DCHECK(var->IsStaticGlobalObjectProperty()); |
| 1498 // Each var occupies two slots in the context: for reads and writes. | 1497 // Each var occupies two slots in the context: for reads and writes. |
| 1499 int slot_index = var->index(); | 1498 int slot_index = var->index(); |
| 1500 int depth = scope()->ContextChainLength(var->scope()); | 1499 int depth = scope()->ContextChainLength(var->scope()); |
| 1501 __ mov(LoadGlobalViaContextDescriptor::DepthRegister(), | 1500 __ mov(LoadGlobalViaContextDescriptor::DepthRegister(), |
| 1502 Operand(Smi::FromInt(depth))); | 1501 Operand(Smi::FromInt(depth))); |
| 1503 __ mov(LoadGlobalViaContextDescriptor::SlotRegister(), | 1502 __ mov(LoadGlobalViaContextDescriptor::SlotRegister(), |
| 1504 Operand(Smi::FromInt(slot_index))); | 1503 Operand(Smi::FromInt(slot_index))); |
| 1505 __ mov(LoadGlobalViaContextDescriptor::NameRegister(), | 1504 __ mov(LoadGlobalViaContextDescriptor::NameRegister(), |
| 1506 Operand(var->name())); | 1505 Operand(var->name())); |
| 1507 LoadGlobalViaContextStub stub(isolate(), depth); | 1506 LoadGlobalViaContextStub stub(isolate(), depth); |
| 1508 __ CallStub(&stub); | 1507 __ CallStub(&stub); |
| 1509 | 1508 |
| 1510 } else { | 1509 } else { |
| 1511 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1510 __ ldr(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
| 1512 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); | 1511 __ mov(LoadDescriptor::NameRegister(), Operand(var->name())); |
| 1513 __ mov(LoadDescriptor::SlotRegister(), | 1512 __ mov(LoadDescriptor::SlotRegister(), |
| 1514 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1513 Operand(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
| 1515 // Inside typeof use a regular load, not a contextual load, to avoid | 1514 CallLoadIC(typeof_mode); |
| 1516 // a reference error. | |
| 1517 CallLoadIC(typeof_state == NOT_INSIDE_TYPEOF ? CONTEXTUAL : NOT_CONTEXTUAL); | |
| 1518 } | 1515 } |
| 1519 } | 1516 } |
| 1520 | 1517 |
| 1521 | 1518 |
| 1522 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1519 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
| 1523 TypeofState typeof_state) { | 1520 TypeofMode typeof_mode) { |
| 1524 // Record position before possible IC call. | 1521 // Record position before possible IC call. |
| 1525 SetExpressionPosition(proxy); | 1522 SetExpressionPosition(proxy); |
| 1526 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS); | 1523 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS); |
| 1527 Variable* var = proxy->var(); | 1524 Variable* var = proxy->var(); |
| 1528 | 1525 |
| 1529 // Three cases: global variables, lookup variables, and all other types of | 1526 // Three cases: global variables, lookup variables, and all other types of |
| 1530 // variables. | 1527 // variables. |
| 1531 switch (var->location()) { | 1528 switch (var->location()) { |
| 1532 case VariableLocation::GLOBAL: | 1529 case VariableLocation::GLOBAL: |
| 1533 case VariableLocation::UNALLOCATED: { | 1530 case VariableLocation::UNALLOCATED: { |
| 1534 Comment cmnt(masm_, "[ Global variable"); | 1531 Comment cmnt(masm_, "[ Global variable"); |
| 1535 EmitGlobalVariableLoad(proxy, typeof_state); | 1532 EmitGlobalVariableLoad(proxy, typeof_mode); |
| 1536 context()->Plug(r0); | 1533 context()->Plug(r0); |
| 1537 break; | 1534 break; |
| 1538 } | 1535 } |
| 1539 | 1536 |
| 1540 case VariableLocation::PARAMETER: | 1537 case VariableLocation::PARAMETER: |
| 1541 case VariableLocation::LOCAL: | 1538 case VariableLocation::LOCAL: |
| 1542 case VariableLocation::CONTEXT: { | 1539 case VariableLocation::CONTEXT: { |
| 1543 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_state); | 1540 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode); |
| 1544 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" | 1541 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" |
| 1545 : "[ Stack variable"); | 1542 : "[ Stack variable"); |
| 1546 if (var->binding_needs_init()) { | 1543 if (var->binding_needs_init()) { |
| 1547 // var->scope() may be NULL when the proxy is located in eval code and | 1544 // var->scope() may be NULL when the proxy is located in eval code and |
| 1548 // refers to a potential outside binding. Currently those bindings are | 1545 // refers to a potential outside binding. Currently those bindings are |
| 1549 // always looked up dynamically, i.e. in that case | 1546 // always looked up dynamically, i.e. in that case |
| 1550 // var->location() == LOOKUP. | 1547 // var->location() == LOOKUP. |
| 1551 // always holds. | 1548 // always holds. |
| 1552 DCHECK(var->scope() != NULL); | 1549 DCHECK(var->scope() != NULL); |
| 1553 | 1550 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1607 } | 1604 } |
| 1608 context()->Plug(var); | 1605 context()->Plug(var); |
| 1609 break; | 1606 break; |
| 1610 } | 1607 } |
| 1611 | 1608 |
| 1612 case VariableLocation::LOOKUP: { | 1609 case VariableLocation::LOOKUP: { |
| 1613 Comment cmnt(masm_, "[ Lookup variable"); | 1610 Comment cmnt(masm_, "[ Lookup variable"); |
| 1614 Label done, slow; | 1611 Label done, slow; |
| 1615 // Generate code for loading from variables potentially shadowed | 1612 // Generate code for loading from variables potentially shadowed |
| 1616 // by eval-introduced variables. | 1613 // by eval-introduced variables. |
| 1617 EmitDynamicLookupFastCase(proxy, typeof_state, &slow, &done); | 1614 EmitDynamicLookupFastCase(proxy, typeof_mode, &slow, &done); |
| 1618 __ bind(&slow); | 1615 __ bind(&slow); |
| 1619 __ mov(r1, Operand(var->name())); | 1616 __ mov(r1, Operand(var->name())); |
| 1620 __ Push(cp, r1); // Context and name. | 1617 __ Push(cp, r1); // Context and name. |
| 1621 Runtime::FunctionId function_id = | 1618 Runtime::FunctionId function_id = |
| 1622 typeof_state == NOT_INSIDE_TYPEOF | 1619 typeof_mode == NOT_INSIDE_TYPEOF |
| 1623 ? Runtime::kLoadLookupSlot | 1620 ? Runtime::kLoadLookupSlot |
| 1624 : Runtime::kLoadLookupSlotNoReferenceError; | 1621 : Runtime::kLoadLookupSlotNoReferenceError; |
| 1625 __ CallRuntime(function_id, 2); | 1622 __ CallRuntime(function_id, 2); |
| 1626 __ bind(&done); | 1623 __ bind(&done); |
| 1627 context()->Plug(r0); | 1624 context()->Plug(r0); |
| 1628 } | 1625 } |
| 1629 } | 1626 } |
| 1630 } | 1627 } |
| 1631 | 1628 |
| 1632 | 1629 |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2294 __ Drop(1); // The function is still on the stack; drop it. | 2291 __ Drop(1); // The function is still on the stack; drop it. |
| 2295 | 2292 |
| 2296 // if (!result.done) goto l_try; | 2293 // if (!result.done) goto l_try; |
| 2297 __ bind(&l_loop); | 2294 __ bind(&l_loop); |
| 2298 __ Move(load_receiver, r0); | 2295 __ Move(load_receiver, r0); |
| 2299 | 2296 |
| 2300 __ push(load_receiver); // save result | 2297 __ push(load_receiver); // save result |
| 2301 __ LoadRoot(load_name, Heap::kdone_stringRootIndex); // "done" | 2298 __ LoadRoot(load_name, Heap::kdone_stringRootIndex); // "done" |
| 2302 __ mov(LoadDescriptor::SlotRegister(), | 2299 __ mov(LoadDescriptor::SlotRegister(), |
| 2303 Operand(SmiFromSlot(expr->DoneFeedbackSlot()))); | 2300 Operand(SmiFromSlot(expr->DoneFeedbackSlot()))); |
| 2304 CallLoadIC(NOT_CONTEXTUAL); // r0=result.done | 2301 CallLoadIC(NOT_INSIDE_TYPEOF); // r0=result.done |
| 2305 Handle<Code> bool_ic = ToBooleanStub::GetUninitialized(isolate()); | 2302 Handle<Code> bool_ic = ToBooleanStub::GetUninitialized(isolate()); |
| 2306 CallIC(bool_ic); | 2303 CallIC(bool_ic); |
| 2307 __ cmp(r0, Operand(0)); | 2304 __ cmp(r0, Operand(0)); |
| 2308 __ b(eq, &l_try); | 2305 __ b(eq, &l_try); |
| 2309 | 2306 |
| 2310 // result.value | 2307 // result.value |
| 2311 __ pop(load_receiver); // result | 2308 __ pop(load_receiver); // result |
| 2312 __ LoadRoot(load_name, Heap::kvalue_stringRootIndex); // "value" | 2309 __ LoadRoot(load_name, Heap::kvalue_stringRootIndex); // "value" |
| 2313 __ mov(LoadDescriptor::SlotRegister(), | 2310 __ mov(LoadDescriptor::SlotRegister(), |
| 2314 Operand(SmiFromSlot(expr->ValueFeedbackSlot()))); | 2311 Operand(SmiFromSlot(expr->ValueFeedbackSlot()))); |
| 2315 CallLoadIC(NOT_CONTEXTUAL); // r0=result.value | 2312 CallLoadIC(NOT_INSIDE_TYPEOF); // r0=result.value |
| 2316 context()->DropAndPlug(2, r0); // drop iter and g | 2313 context()->DropAndPlug(2, r0); // drop iter and g |
| 2317 break; | 2314 break; |
| 2318 } | 2315 } |
| 2319 } | 2316 } |
| 2320 } | 2317 } |
| 2321 | 2318 |
| 2322 | 2319 |
| 2323 void FullCodeGenerator::EmitGeneratorResume(Expression *generator, | 2320 void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
| 2324 Expression *value, | 2321 Expression *value, |
| 2325 JSGeneratorObject::ResumeMode resume_mode) { | 2322 JSGeneratorObject::ResumeMode resume_mode) { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2457 | 2454 |
| 2458 | 2455 |
| 2459 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { | 2456 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { |
| 2460 SetExpressionPosition(prop); | 2457 SetExpressionPosition(prop); |
| 2461 Literal* key = prop->key()->AsLiteral(); | 2458 Literal* key = prop->key()->AsLiteral(); |
| 2462 DCHECK(!prop->IsSuperAccess()); | 2459 DCHECK(!prop->IsSuperAccess()); |
| 2463 | 2460 |
| 2464 __ mov(LoadDescriptor::NameRegister(), Operand(key->value())); | 2461 __ mov(LoadDescriptor::NameRegister(), Operand(key->value())); |
| 2465 __ mov(LoadDescriptor::SlotRegister(), | 2462 __ mov(LoadDescriptor::SlotRegister(), |
| 2466 Operand(SmiFromSlot(prop->PropertyFeedbackSlot()))); | 2463 Operand(SmiFromSlot(prop->PropertyFeedbackSlot()))); |
| 2467 CallLoadIC(NOT_CONTEXTUAL, language_mode()); | 2464 CallLoadIC(NOT_INSIDE_TYPEOF, language_mode()); |
| 2468 } | 2465 } |
| 2469 | 2466 |
| 2470 | 2467 |
| 2471 void FullCodeGenerator::EmitNamedSuperPropertyLoad(Property* prop) { | 2468 void FullCodeGenerator::EmitNamedSuperPropertyLoad(Property* prop) { |
| 2472 // Stack: receiver, home_object. | 2469 // Stack: receiver, home_object. |
| 2473 SetExpressionPosition(prop); | 2470 SetExpressionPosition(prop); |
| 2474 Literal* key = prop->key()->AsLiteral(); | 2471 Literal* key = prop->key()->AsLiteral(); |
| 2475 DCHECK(!key->value()->IsSmi()); | 2472 DCHECK(!key->value()->IsSmi()); |
| 2476 DCHECK(prop->IsSuperAccess()); | 2473 DCHECK(prop->IsSuperAccess()); |
| 2477 | 2474 |
| (...skipping 2274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4752 // Push the builtins object as the receiver. | 4749 // Push the builtins object as the receiver. |
| 4753 Register receiver = LoadDescriptor::ReceiverRegister(); | 4750 Register receiver = LoadDescriptor::ReceiverRegister(); |
| 4754 __ ldr(receiver, GlobalObjectOperand()); | 4751 __ ldr(receiver, GlobalObjectOperand()); |
| 4755 __ ldr(receiver, FieldMemOperand(receiver, GlobalObject::kBuiltinsOffset)); | 4752 __ ldr(receiver, FieldMemOperand(receiver, GlobalObject::kBuiltinsOffset)); |
| 4756 __ push(receiver); | 4753 __ push(receiver); |
| 4757 | 4754 |
| 4758 // Load the function from the receiver. | 4755 // Load the function from the receiver. |
| 4759 __ mov(LoadDescriptor::NameRegister(), Operand(expr->name())); | 4756 __ mov(LoadDescriptor::NameRegister(), Operand(expr->name())); |
| 4760 __ mov(LoadDescriptor::SlotRegister(), | 4757 __ mov(LoadDescriptor::SlotRegister(), |
| 4761 Operand(SmiFromSlot(expr->CallRuntimeFeedbackSlot()))); | 4758 Operand(SmiFromSlot(expr->CallRuntimeFeedbackSlot()))); |
| 4762 CallLoadIC(NOT_CONTEXTUAL); | 4759 CallLoadIC(NOT_INSIDE_TYPEOF); |
| 4763 } | 4760 } |
| 4764 | 4761 |
| 4765 | 4762 |
| 4766 void FullCodeGenerator::EmitCallJSRuntimeFunction(CallRuntime* expr) { | 4763 void FullCodeGenerator::EmitCallJSRuntimeFunction(CallRuntime* expr) { |
| 4767 ZoneList<Expression*>* args = expr->arguments(); | 4764 ZoneList<Expression*>* args = expr->arguments(); |
| 4768 int arg_count = args->length(); | 4765 int arg_count = args->length(); |
| 4769 | 4766 |
| 4770 SetCallPosition(expr, arg_count); | 4767 SetCallPosition(expr, arg_count); |
| 4771 CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS); | 4768 CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS); |
| 4772 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); | 4769 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5626 DCHECK(interrupt_address == | 5623 DCHECK(interrupt_address == |
| 5627 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5624 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5628 return OSR_AFTER_STACK_CHECK; | 5625 return OSR_AFTER_STACK_CHECK; |
| 5629 } | 5626 } |
| 5630 | 5627 |
| 5631 | 5628 |
| 5632 } // namespace internal | 5629 } // namespace internal |
| 5633 } // namespace v8 | 5630 } // namespace v8 |
| 5634 | 5631 |
| 5635 #endif // V8_TARGET_ARCH_ARM | 5632 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |