| 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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 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 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 Immediate(isolate()->factory()->home_object_symbol())); | 1290 Immediate(isolate()->factory()->home_object_symbol())); |
| 1291 __ mov(StoreDescriptor::ValueRegister(), | 1291 __ mov(StoreDescriptor::ValueRegister(), |
| 1292 Operand(esp, offset * kPointerSize)); | 1292 Operand(esp, offset * kPointerSize)); |
| 1293 if (FLAG_vector_stores) EmitLoadStoreICSlot(slot); | 1293 if (FLAG_vector_stores) EmitLoadStoreICSlot(slot); |
| 1294 CallStoreIC(); | 1294 CallStoreIC(); |
| 1295 } | 1295 } |
| 1296 } | 1296 } |
| 1297 | 1297 |
| 1298 | 1298 |
| 1299 void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy, | 1299 void FullCodeGenerator::EmitLoadGlobalCheckExtensions(VariableProxy* proxy, |
| 1300 TypeofState typeof_state, | 1300 TypeofMode typeof_mode, |
| 1301 Label* slow) { | 1301 Label* slow) { |
| 1302 Register context = esi; | 1302 Register context = esi; |
| 1303 Register temp = edx; | 1303 Register temp = edx; |
| 1304 | 1304 |
| 1305 Scope* s = scope(); | 1305 Scope* s = scope(); |
| 1306 while (s != NULL) { | 1306 while (s != NULL) { |
| 1307 if (s->num_heap_slots() > 0) { | 1307 if (s->num_heap_slots() > 0) { |
| 1308 if (s->calls_sloppy_eval()) { | 1308 if (s->calls_sloppy_eval()) { |
| 1309 // Check that extension is NULL. | 1309 // Check that extension is NULL. |
| 1310 __ cmp(ContextOperand(context, Context::EXTENSION_INDEX), | 1310 __ cmp(ContextOperand(context, Context::EXTENSION_INDEX), |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1339 __ cmp(ContextOperand(temp, Context::EXTENSION_INDEX), Immediate(0)); | 1339 __ cmp(ContextOperand(temp, Context::EXTENSION_INDEX), Immediate(0)); |
| 1340 __ j(not_equal, slow); | 1340 __ j(not_equal, slow); |
| 1341 // Load next context in chain. | 1341 // Load next context in chain. |
| 1342 __ mov(temp, ContextOperand(temp, Context::PREVIOUS_INDEX)); | 1342 __ mov(temp, ContextOperand(temp, Context::PREVIOUS_INDEX)); |
| 1343 __ jmp(&next); | 1343 __ jmp(&next); |
| 1344 __ bind(&fast); | 1344 __ bind(&fast); |
| 1345 } | 1345 } |
| 1346 | 1346 |
| 1347 // All extension objects were empty and it is safe to use a normal global | 1347 // All extension objects were empty and it is safe to use a normal global |
| 1348 // load machinery. | 1348 // load machinery. |
| 1349 EmitGlobalVariableLoad(proxy, typeof_state); | 1349 EmitGlobalVariableLoad(proxy, typeof_mode); |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 | 1352 |
| 1353 MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, | 1353 MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, |
| 1354 Label* slow) { | 1354 Label* slow) { |
| 1355 DCHECK(var->IsContextSlot()); | 1355 DCHECK(var->IsContextSlot()); |
| 1356 Register context = esi; | 1356 Register context = esi; |
| 1357 Register temp = ebx; | 1357 Register temp = ebx; |
| 1358 | 1358 |
| 1359 for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) { | 1359 for (Scope* s = scope(); s != var->scope(); s = s->outer_scope()) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1374 __ j(not_equal, slow); | 1374 __ j(not_equal, slow); |
| 1375 | 1375 |
| 1376 // This function is used only for loads, not stores, so it's safe to | 1376 // This function is used only for loads, not stores, so it's safe to |
| 1377 // return an esi-based operand (the write barrier cannot be allowed to | 1377 // return an esi-based operand (the write barrier cannot be allowed to |
| 1378 // destroy the esi register). | 1378 // destroy the esi register). |
| 1379 return ContextOperand(context, var->index()); | 1379 return ContextOperand(context, var->index()); |
| 1380 } | 1380 } |
| 1381 | 1381 |
| 1382 | 1382 |
| 1383 void FullCodeGenerator::EmitDynamicLookupFastCase(VariableProxy* proxy, | 1383 void FullCodeGenerator::EmitDynamicLookupFastCase(VariableProxy* proxy, |
| 1384 TypeofState typeof_state, | 1384 TypeofMode typeof_mode, |
| 1385 Label* slow, | 1385 Label* slow, Label* done) { |
| 1386 Label* done) { | |
| 1387 // Generate fast-case code for variables that might be shadowed by | 1386 // Generate fast-case code for variables that might be shadowed by |
| 1388 // eval-introduced variables. Eval is used a lot without | 1387 // eval-introduced variables. Eval is used a lot without |
| 1389 // introducing variables. In those cases, we do not want to | 1388 // introducing variables. In those cases, we do not want to |
| 1390 // perform a runtime call for all variables in the scope | 1389 // perform a runtime call for all variables in the scope |
| 1391 // containing the eval. | 1390 // containing the eval. |
| 1392 Variable* var = proxy->var(); | 1391 Variable* var = proxy->var(); |
| 1393 if (var->mode() == DYNAMIC_GLOBAL) { | 1392 if (var->mode() == DYNAMIC_GLOBAL) { |
| 1394 EmitLoadGlobalCheckExtensions(proxy, typeof_state, slow); | 1393 EmitLoadGlobalCheckExtensions(proxy, typeof_mode, slow); |
| 1395 __ jmp(done); | 1394 __ jmp(done); |
| 1396 } else if (var->mode() == DYNAMIC_LOCAL) { | 1395 } else if (var->mode() == DYNAMIC_LOCAL) { |
| 1397 Variable* local = var->local_if_not_shadowed(); | 1396 Variable* local = var->local_if_not_shadowed(); |
| 1398 __ mov(eax, ContextSlotOperandCheckExtensions(local, slow)); | 1397 __ mov(eax, ContextSlotOperandCheckExtensions(local, slow)); |
| 1399 if (local->mode() == LET || local->mode() == CONST || | 1398 if (local->mode() == LET || local->mode() == CONST || |
| 1400 local->mode() == CONST_LEGACY) { | 1399 local->mode() == CONST_LEGACY) { |
| 1401 __ cmp(eax, isolate()->factory()->the_hole_value()); | 1400 __ cmp(eax, isolate()->factory()->the_hole_value()); |
| 1402 __ j(not_equal, done); | 1401 __ j(not_equal, done); |
| 1403 if (local->mode() == CONST_LEGACY) { | 1402 if (local->mode() == CONST_LEGACY) { |
| 1404 __ mov(eax, isolate()->factory()->undefined_value()); | 1403 __ mov(eax, isolate()->factory()->undefined_value()); |
| 1405 } else { // LET || CONST | 1404 } else { // LET || CONST |
| 1406 __ push(Immediate(var->name())); | 1405 __ push(Immediate(var->name())); |
| 1407 __ CallRuntime(Runtime::kThrowReferenceError, 1); | 1406 __ CallRuntime(Runtime::kThrowReferenceError, 1); |
| 1408 } | 1407 } |
| 1409 } | 1408 } |
| 1410 __ jmp(done); | 1409 __ jmp(done); |
| 1411 } | 1410 } |
| 1412 } | 1411 } |
| 1413 | 1412 |
| 1414 | 1413 |
| 1415 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, | 1414 void FullCodeGenerator::EmitGlobalVariableLoad(VariableProxy* proxy, |
| 1416 TypeofState typeof_state) { | 1415 TypeofMode typeof_mode) { |
| 1417 Variable* var = proxy->var(); | 1416 Variable* var = proxy->var(); |
| 1418 DCHECK(var->IsUnallocatedOrGlobalSlot() || | 1417 DCHECK(var->IsUnallocatedOrGlobalSlot() || |
| 1419 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); | 1418 (var->IsLookupSlot() && var->mode() == DYNAMIC_GLOBAL)); |
| 1420 if (var->IsGlobalSlot()) { | 1419 if (var->IsGlobalSlot()) { |
| 1421 DCHECK(var->index() > 0); | 1420 DCHECK(var->index() > 0); |
| 1422 DCHECK(var->IsStaticGlobalObjectProperty()); | 1421 DCHECK(var->IsStaticGlobalObjectProperty()); |
| 1423 // Each var occupies two slots in the context: for reads and writes. | 1422 // Each var occupies two slots in the context: for reads and writes. |
| 1424 int slot_index = var->index(); | 1423 int slot_index = var->index(); |
| 1425 int depth = scope()->ContextChainLength(var->scope()); | 1424 int depth = scope()->ContextChainLength(var->scope()); |
| 1426 __ mov(LoadGlobalViaContextDescriptor::DepthRegister(), | 1425 __ mov(LoadGlobalViaContextDescriptor::DepthRegister(), |
| 1427 Immediate(Smi::FromInt(depth))); | 1426 Immediate(Smi::FromInt(depth))); |
| 1428 __ mov(LoadGlobalViaContextDescriptor::SlotRegister(), | 1427 __ mov(LoadGlobalViaContextDescriptor::SlotRegister(), |
| 1429 Immediate(Smi::FromInt(slot_index))); | 1428 Immediate(Smi::FromInt(slot_index))); |
| 1430 __ mov(LoadGlobalViaContextDescriptor::NameRegister(), var->name()); | 1429 __ mov(LoadGlobalViaContextDescriptor::NameRegister(), var->name()); |
| 1431 LoadGlobalViaContextStub stub(isolate(), depth); | 1430 LoadGlobalViaContextStub stub(isolate(), depth); |
| 1432 __ CallStub(&stub); | 1431 __ CallStub(&stub); |
| 1433 | 1432 |
| 1434 } else { | 1433 } else { |
| 1435 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); | 1434 __ mov(LoadDescriptor::ReceiverRegister(), GlobalObjectOperand()); |
| 1436 __ mov(LoadDescriptor::NameRegister(), var->name()); | 1435 __ mov(LoadDescriptor::NameRegister(), var->name()); |
| 1437 __ mov(LoadDescriptor::SlotRegister(), | 1436 __ mov(LoadDescriptor::SlotRegister(), |
| 1438 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot()))); | 1437 Immediate(SmiFromSlot(proxy->VariableFeedbackSlot()))); |
| 1439 // Inside typeof use a regular load, not a contextual load, to avoid | 1438 CallLoadIC(typeof_mode); |
| 1440 // a reference error. | |
| 1441 CallLoadIC(typeof_state == NOT_INSIDE_TYPEOF ? CONTEXTUAL : NOT_CONTEXTUAL); | |
| 1442 } | 1439 } |
| 1443 } | 1440 } |
| 1444 | 1441 |
| 1445 | 1442 |
| 1446 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, | 1443 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
| 1447 TypeofState typeof_state) { | 1444 TypeofMode typeof_mode) { |
| 1448 SetExpressionPosition(proxy); | 1445 SetExpressionPosition(proxy); |
| 1449 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS); | 1446 PrepareForBailoutForId(proxy->BeforeId(), NO_REGISTERS); |
| 1450 Variable* var = proxy->var(); | 1447 Variable* var = proxy->var(); |
| 1451 | 1448 |
| 1452 // Three cases: global variables, lookup variables, and all other types of | 1449 // Three cases: global variables, lookup variables, and all other types of |
| 1453 // variables. | 1450 // variables. |
| 1454 switch (var->location()) { | 1451 switch (var->location()) { |
| 1455 case VariableLocation::GLOBAL: | 1452 case VariableLocation::GLOBAL: |
| 1456 case VariableLocation::UNALLOCATED: { | 1453 case VariableLocation::UNALLOCATED: { |
| 1457 Comment cmnt(masm_, "[ Global variable"); | 1454 Comment cmnt(masm_, "[ Global variable"); |
| 1458 EmitGlobalVariableLoad(proxy, typeof_state); | 1455 EmitGlobalVariableLoad(proxy, typeof_mode); |
| 1459 context()->Plug(eax); | 1456 context()->Plug(eax); |
| 1460 break; | 1457 break; |
| 1461 } | 1458 } |
| 1462 | 1459 |
| 1463 case VariableLocation::PARAMETER: | 1460 case VariableLocation::PARAMETER: |
| 1464 case VariableLocation::LOCAL: | 1461 case VariableLocation::LOCAL: |
| 1465 case VariableLocation::CONTEXT: { | 1462 case VariableLocation::CONTEXT: { |
| 1466 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_state); | 1463 DCHECK_EQ(NOT_INSIDE_TYPEOF, typeof_mode); |
| 1467 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" | 1464 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" |
| 1468 : "[ Stack variable"); | 1465 : "[ Stack variable"); |
| 1469 if (var->binding_needs_init()) { | 1466 if (var->binding_needs_init()) { |
| 1470 // var->scope() may be NULL when the proxy is located in eval code and | 1467 // var->scope() may be NULL when the proxy is located in eval code and |
| 1471 // refers to a potential outside binding. Currently those bindings are | 1468 // refers to a potential outside binding. Currently those bindings are |
| 1472 // always looked up dynamically, i.e. in that case | 1469 // always looked up dynamically, i.e. in that case |
| 1473 // var->location() == LOOKUP. | 1470 // var->location() == LOOKUP. |
| 1474 // always holds. | 1471 // always holds. |
| 1475 DCHECK(var->scope() != NULL); | 1472 DCHECK(var->scope() != NULL); |
| 1476 | 1473 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1529 } | 1526 } |
| 1530 context()->Plug(var); | 1527 context()->Plug(var); |
| 1531 break; | 1528 break; |
| 1532 } | 1529 } |
| 1533 | 1530 |
| 1534 case VariableLocation::LOOKUP: { | 1531 case VariableLocation::LOOKUP: { |
| 1535 Comment cmnt(masm_, "[ Lookup variable"); | 1532 Comment cmnt(masm_, "[ Lookup variable"); |
| 1536 Label done, slow; | 1533 Label done, slow; |
| 1537 // Generate code for loading from variables potentially shadowed | 1534 // Generate code for loading from variables potentially shadowed |
| 1538 // by eval-introduced variables. | 1535 // by eval-introduced variables. |
| 1539 EmitDynamicLookupFastCase(proxy, typeof_state, &slow, &done); | 1536 EmitDynamicLookupFastCase(proxy, typeof_mode, &slow, &done); |
| 1540 __ bind(&slow); | 1537 __ bind(&slow); |
| 1541 __ push(esi); // Context. | 1538 __ push(esi); // Context. |
| 1542 __ push(Immediate(var->name())); | 1539 __ push(Immediate(var->name())); |
| 1543 Runtime::FunctionId function_id = | 1540 Runtime::FunctionId function_id = |
| 1544 typeof_state == NOT_INSIDE_TYPEOF | 1541 typeof_mode == NOT_INSIDE_TYPEOF |
| 1545 ? Runtime::kLoadLookupSlot | 1542 ? Runtime::kLoadLookupSlot |
| 1546 : Runtime::kLoadLookupSlotNoReferenceError; | 1543 : Runtime::kLoadLookupSlotNoReferenceError; |
| 1547 __ CallRuntime(function_id, 2); | 1544 __ CallRuntime(function_id, 2); |
| 1548 __ bind(&done); | 1545 __ bind(&done); |
| 1549 context()->Plug(eax); | 1546 context()->Plug(eax); |
| 1550 break; | 1547 break; |
| 1551 } | 1548 } |
| 1552 } | 1549 } |
| 1553 } | 1550 } |
| 1554 | 1551 |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2218 __ Drop(1); // The function is still on the stack; drop it. | 2215 __ Drop(1); // The function is still on the stack; drop it. |
| 2219 | 2216 |
| 2220 // if (!result.done) goto l_try; | 2217 // if (!result.done) goto l_try; |
| 2221 __ bind(&l_loop); | 2218 __ bind(&l_loop); |
| 2222 __ push(eax); // save result | 2219 __ push(eax); // save result |
| 2223 __ Move(load_receiver, eax); // result | 2220 __ Move(load_receiver, eax); // result |
| 2224 __ mov(load_name, | 2221 __ mov(load_name, |
| 2225 isolate()->factory()->done_string()); // "done" | 2222 isolate()->factory()->done_string()); // "done" |
| 2226 __ mov(LoadDescriptor::SlotRegister(), | 2223 __ mov(LoadDescriptor::SlotRegister(), |
| 2227 Immediate(SmiFromSlot(expr->DoneFeedbackSlot()))); | 2224 Immediate(SmiFromSlot(expr->DoneFeedbackSlot()))); |
| 2228 CallLoadIC(NOT_CONTEXTUAL); // result.done in eax | 2225 CallLoadIC(NOT_INSIDE_TYPEOF); // result.done in eax |
| 2229 Handle<Code> bool_ic = ToBooleanStub::GetUninitialized(isolate()); | 2226 Handle<Code> bool_ic = ToBooleanStub::GetUninitialized(isolate()); |
| 2230 CallIC(bool_ic); | 2227 CallIC(bool_ic); |
| 2231 __ test(eax, eax); | 2228 __ test(eax, eax); |
| 2232 __ j(zero, &l_try); | 2229 __ j(zero, &l_try); |
| 2233 | 2230 |
| 2234 // result.value | 2231 // result.value |
| 2235 __ pop(load_receiver); // result | 2232 __ pop(load_receiver); // result |
| 2236 __ mov(load_name, | 2233 __ mov(load_name, |
| 2237 isolate()->factory()->value_string()); // "value" | 2234 isolate()->factory()->value_string()); // "value" |
| 2238 __ mov(LoadDescriptor::SlotRegister(), | 2235 __ mov(LoadDescriptor::SlotRegister(), |
| 2239 Immediate(SmiFromSlot(expr->ValueFeedbackSlot()))); | 2236 Immediate(SmiFromSlot(expr->ValueFeedbackSlot()))); |
| 2240 CallLoadIC(NOT_CONTEXTUAL); // result.value in eax | 2237 CallLoadIC(NOT_INSIDE_TYPEOF); // result.value in eax |
| 2241 context()->DropAndPlug(2, eax); // drop iter and g | 2238 context()->DropAndPlug(2, eax); // drop iter and g |
| 2242 break; | 2239 break; |
| 2243 } | 2240 } |
| 2244 } | 2241 } |
| 2245 } | 2242 } |
| 2246 | 2243 |
| 2247 | 2244 |
| 2248 void FullCodeGenerator::EmitGeneratorResume(Expression *generator, | 2245 void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
| 2249 Expression *value, | 2246 Expression *value, |
| 2250 JSGeneratorObject::ResumeMode resume_mode) { | 2247 JSGeneratorObject::ResumeMode resume_mode) { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2369 | 2366 |
| 2370 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { | 2367 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { |
| 2371 SetExpressionPosition(prop); | 2368 SetExpressionPosition(prop); |
| 2372 Literal* key = prop->key()->AsLiteral(); | 2369 Literal* key = prop->key()->AsLiteral(); |
| 2373 DCHECK(!key->value()->IsSmi()); | 2370 DCHECK(!key->value()->IsSmi()); |
| 2374 DCHECK(!prop->IsSuperAccess()); | 2371 DCHECK(!prop->IsSuperAccess()); |
| 2375 | 2372 |
| 2376 __ mov(LoadDescriptor::NameRegister(), Immediate(key->value())); | 2373 __ mov(LoadDescriptor::NameRegister(), Immediate(key->value())); |
| 2377 __ mov(LoadDescriptor::SlotRegister(), | 2374 __ mov(LoadDescriptor::SlotRegister(), |
| 2378 Immediate(SmiFromSlot(prop->PropertyFeedbackSlot()))); | 2375 Immediate(SmiFromSlot(prop->PropertyFeedbackSlot()))); |
| 2379 CallLoadIC(NOT_CONTEXTUAL, language_mode()); | 2376 CallLoadIC(NOT_INSIDE_TYPEOF, language_mode()); |
| 2380 } | 2377 } |
| 2381 | 2378 |
| 2382 | 2379 |
| 2383 void FullCodeGenerator::EmitNamedSuperPropertyLoad(Property* prop) { | 2380 void FullCodeGenerator::EmitNamedSuperPropertyLoad(Property* prop) { |
| 2384 // Stack: receiver, home_object. | 2381 // Stack: receiver, home_object. |
| 2385 SetExpressionPosition(prop); | 2382 SetExpressionPosition(prop); |
| 2386 Literal* key = prop->key()->AsLiteral(); | 2383 Literal* key = prop->key()->AsLiteral(); |
| 2387 DCHECK(!key->value()->IsSmi()); | 2384 DCHECK(!key->value()->IsSmi()); |
| 2388 DCHECK(prop->IsSuperAccess()); | 2385 DCHECK(prop->IsSuperAccess()); |
| 2389 | 2386 |
| (...skipping 2291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4681 void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) { | 4678 void FullCodeGenerator::EmitLoadJSRuntimeFunction(CallRuntime* expr) { |
| 4682 // Push the builtins object as receiver. | 4679 // Push the builtins object as receiver. |
| 4683 __ mov(eax, GlobalObjectOperand()); | 4680 __ mov(eax, GlobalObjectOperand()); |
| 4684 __ push(FieldOperand(eax, GlobalObject::kBuiltinsOffset)); | 4681 __ push(FieldOperand(eax, GlobalObject::kBuiltinsOffset)); |
| 4685 | 4682 |
| 4686 // Load the function from the receiver. | 4683 // Load the function from the receiver. |
| 4687 __ mov(LoadDescriptor::ReceiverRegister(), Operand(esp, 0)); | 4684 __ mov(LoadDescriptor::ReceiverRegister(), Operand(esp, 0)); |
| 4688 __ mov(LoadDescriptor::NameRegister(), Immediate(expr->name())); | 4685 __ mov(LoadDescriptor::NameRegister(), Immediate(expr->name())); |
| 4689 __ mov(LoadDescriptor::SlotRegister(), | 4686 __ mov(LoadDescriptor::SlotRegister(), |
| 4690 Immediate(SmiFromSlot(expr->CallRuntimeFeedbackSlot()))); | 4687 Immediate(SmiFromSlot(expr->CallRuntimeFeedbackSlot()))); |
| 4691 CallLoadIC(NOT_CONTEXTUAL); | 4688 CallLoadIC(NOT_INSIDE_TYPEOF); |
| 4692 } | 4689 } |
| 4693 | 4690 |
| 4694 | 4691 |
| 4695 void FullCodeGenerator::EmitCallJSRuntimeFunction(CallRuntime* expr) { | 4692 void FullCodeGenerator::EmitCallJSRuntimeFunction(CallRuntime* expr) { |
| 4696 ZoneList<Expression*>* args = expr->arguments(); | 4693 ZoneList<Expression*>* args = expr->arguments(); |
| 4697 int arg_count = args->length(); | 4694 int arg_count = args->length(); |
| 4698 | 4695 |
| 4699 SetCallPosition(expr, arg_count); | 4696 SetCallPosition(expr, arg_count); |
| 4700 CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS); | 4697 CallFunctionStub stub(isolate(), arg_count, NO_CALL_FUNCTION_FLAGS); |
| 4701 __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize)); | 4698 __ mov(edi, Operand(esp, (arg_count + 1) * kPointerSize)); |
| (...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5494 Assembler::target_address_at(call_target_address, | 5491 Assembler::target_address_at(call_target_address, |
| 5495 unoptimized_code)); | 5492 unoptimized_code)); |
| 5496 return OSR_AFTER_STACK_CHECK; | 5493 return OSR_AFTER_STACK_CHECK; |
| 5497 } | 5494 } |
| 5498 | 5495 |
| 5499 | 5496 |
| 5500 } // namespace internal | 5497 } // namespace internal |
| 5501 } // namespace v8 | 5498 } // namespace v8 |
| 5502 | 5499 |
| 5503 #endif // V8_TARGET_ARCH_IA32 | 5500 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |