Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 352583008: Rollback to Version 3.28.4 (based on bleeding_edge revision r22031) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/debug-ia32.cc ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 __ cmp(ContextOperand(temp, Context::EXTENSION_INDEX), Immediate(0)); 1330 __ cmp(ContextOperand(temp, Context::EXTENSION_INDEX), Immediate(0));
1331 __ j(not_equal, slow); 1331 __ j(not_equal, slow);
1332 // Load next context in chain. 1332 // Load next context in chain.
1333 __ mov(temp, ContextOperand(temp, Context::PREVIOUS_INDEX)); 1333 __ mov(temp, ContextOperand(temp, Context::PREVIOUS_INDEX));
1334 __ jmp(&next); 1334 __ jmp(&next);
1335 __ bind(&fast); 1335 __ bind(&fast);
1336 } 1336 }
1337 1337
1338 // All extension objects were empty and it is safe to use a global 1338 // All extension objects were empty and it is safe to use a global
1339 // load IC call. 1339 // load IC call.
1340 __ mov(LoadIC::ReceiverRegister(), GlobalObjectOperand()); 1340 __ mov(edx, GlobalObjectOperand());
1341 __ mov(LoadIC::NameRegister(), var->name()); 1341 __ mov(ecx, var->name());
1342 ContextualMode mode = (typeof_state == INSIDE_TYPEOF) 1342 ContextualMode mode = (typeof_state == INSIDE_TYPEOF)
1343 ? NOT_CONTEXTUAL 1343 ? NOT_CONTEXTUAL
1344 : CONTEXTUAL; 1344 : CONTEXTUAL;
1345 1345
1346 CallLoadIC(mode); 1346 CallLoadIC(mode);
1347 } 1347 }
1348 1348
1349 1349
1350 MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var, 1350 MemOperand FullCodeGenerator::ContextSlotOperandCheckExtensions(Variable* var,
1351 Label* slow) { 1351 Label* slow) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { 1411 void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
1412 // Record position before possible IC call. 1412 // Record position before possible IC call.
1413 SetSourcePosition(proxy->position()); 1413 SetSourcePosition(proxy->position());
1414 Variable* var = proxy->var(); 1414 Variable* var = proxy->var();
1415 1415
1416 // Three cases: global variables, lookup variables, and all other types of 1416 // Three cases: global variables, lookup variables, and all other types of
1417 // variables. 1417 // variables.
1418 switch (var->location()) { 1418 switch (var->location()) {
1419 case Variable::UNALLOCATED: { 1419 case Variable::UNALLOCATED: {
1420 Comment cmnt(masm_, "[ Global variable"); 1420 Comment cmnt(masm_, "[ Global variable");
1421 __ mov(LoadIC::ReceiverRegister(), GlobalObjectOperand()); 1421 // Use inline caching. Variable name is passed in ecx and the global
1422 __ mov(LoadIC::NameRegister(), var->name()); 1422 // object in eax.
1423 __ mov(edx, GlobalObjectOperand());
1424 __ mov(ecx, var->name());
1423 CallLoadIC(CONTEXTUAL); 1425 CallLoadIC(CONTEXTUAL);
1424 context()->Plug(eax); 1426 context()->Plug(eax);
1425 break; 1427 break;
1426 } 1428 }
1427 1429
1428 case Variable::PARAMETER: 1430 case Variable::PARAMETER:
1429 case Variable::LOCAL: 1431 case Variable::LOCAL:
1430 case Variable::CONTEXT: { 1432 case Variable::CONTEXT: {
1431 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable" 1433 Comment cmnt(masm_, var->IsContextSlot() ? "[ Context variable"
1432 : "[ Stack variable"); 1434 : "[ Stack variable");
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 __ CallRuntime(Runtime::kSuspendJSGeneratorObject, 1); 2004 __ CallRuntime(Runtime::kSuspendJSGeneratorObject, 1);
2003 __ mov(context_register(), 2005 __ mov(context_register(),
2004 Operand(ebp, StandardFrameConstants::kContextOffset)); 2006 Operand(ebp, StandardFrameConstants::kContextOffset));
2005 __ pop(eax); // result 2007 __ pop(eax); // result
2006 EmitReturnSequence(); 2008 EmitReturnSequence();
2007 __ bind(&l_resume); // received in eax 2009 __ bind(&l_resume); // received in eax
2008 __ PopTryHandler(); 2010 __ PopTryHandler();
2009 2011
2010 // receiver = iter; f = iter.next; arg = received; 2012 // receiver = iter; f = iter.next; arg = received;
2011 __ bind(&l_next); 2013 __ bind(&l_next);
2012 Register keyedload_receiver = KeyedLoadIC::ReceiverRegister(); 2014 __ mov(ecx, isolate()->factory()->next_string()); // "next"
2013 Register keyedload_name = KeyedLoadIC::NameRegister(); 2015 __ push(ecx);
2014 ASSERT(keyedload_receiver.is(edx));
2015 ASSERT(keyedload_name.is(ecx));
2016
2017 __ mov(keyedload_name,
2018 isolate()->factory()->next_string()); // "next"
2019 __ push(keyedload_name);
2020 __ push(Operand(esp, 2 * kPointerSize)); // iter 2016 __ push(Operand(esp, 2 * kPointerSize)); // iter
2021 __ push(eax); // received 2017 __ push(eax); // received
2022 2018
2023 // result = receiver[f](arg); 2019 // result = receiver[f](arg);
2024 __ bind(&l_call); 2020 __ bind(&l_call);
2025 __ mov(keyedload_receiver, Operand(esp, kPointerSize)); 2021 __ mov(edx, Operand(esp, kPointerSize));
2026 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); 2022 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
2027 CallIC(ic, TypeFeedbackId::None()); 2023 CallIC(ic, TypeFeedbackId::None());
2028 __ mov(edi, eax); 2024 __ mov(edi, eax);
2029 __ mov(Operand(esp, 2 * kPointerSize), edi); 2025 __ mov(Operand(esp, 2 * kPointerSize), edi);
2030 CallFunctionStub stub(isolate(), 1, CALL_AS_METHOD); 2026 CallFunctionStub stub(isolate(), 1, CALL_AS_METHOD);
2031 __ CallStub(&stub); 2027 __ CallStub(&stub);
2032 2028
2033 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 2029 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
2034 __ Drop(1); // The function is still on the stack; drop it. 2030 __ Drop(1); // The function is still on the stack; drop it.
2035 2031
2036 // if (!result.done) goto l_try; 2032 // if (!result.done) goto l_try;
2037 __ bind(&l_loop); 2033 __ bind(&l_loop);
2038 __ push(eax); // save result 2034 __ push(eax); // save result
2039 Register load_receiver = LoadIC::ReceiverRegister(); 2035 __ mov(edx, eax); // result
2040 Register load_name = LoadIC::NameRegister(); 2036 __ mov(ecx, isolate()->factory()->done_string()); // "done"
2041 ASSERT(load_receiver.is(edx));
2042 ASSERT(load_name.is(ecx));
2043 __ mov(load_receiver, eax); // result
2044 __ mov(load_name,
2045 isolate()->factory()->done_string()); // "done"
2046 CallLoadIC(NOT_CONTEXTUAL); // result.done in eax 2037 CallLoadIC(NOT_CONTEXTUAL); // result.done in eax
2047 Handle<Code> bool_ic = ToBooleanStub::GetUninitialized(isolate()); 2038 Handle<Code> bool_ic = ToBooleanStub::GetUninitialized(isolate());
2048 CallIC(bool_ic); 2039 CallIC(bool_ic);
2049 __ test(eax, eax); 2040 __ test(eax, eax);
2050 __ j(zero, &l_try); 2041 __ j(zero, &l_try);
2051 2042
2052 // result.value 2043 // result.value
2053 __ pop(load_receiver); // result 2044 __ pop(edx); // result
2054 __ mov(load_name, 2045 __ mov(ecx, isolate()->factory()->value_string()); // "value"
2055 isolate()->factory()->value_string()); // "value"
2056 CallLoadIC(NOT_CONTEXTUAL); // result.value in eax 2046 CallLoadIC(NOT_CONTEXTUAL); // result.value in eax
2057 context()->DropAndPlug(2, eax); // drop iter and g 2047 context()->DropAndPlug(2, eax); // drop iter and g
2058 break; 2048 break;
2059 } 2049 }
2060 } 2050 }
2061 } 2051 }
2062 2052
2063 2053
2064 void FullCodeGenerator::EmitGeneratorResume(Expression *generator, 2054 void FullCodeGenerator::EmitGeneratorResume(Expression *generator,
2065 Expression *value, 2055 Expression *value,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
2205 // root set. 2195 // root set.
2206 __ RecordWriteField(eax, JSGeneratorObject::kResultValuePropertyOffset, 2196 __ RecordWriteField(eax, JSGeneratorObject::kResultValuePropertyOffset,
2207 ecx, edx, kDontSaveFPRegs); 2197 ecx, edx, kDontSaveFPRegs);
2208 } 2198 }
2209 2199
2210 2200
2211 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { 2201 void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
2212 SetSourcePosition(prop->position()); 2202 SetSourcePosition(prop->position());
2213 Literal* key = prop->key()->AsLiteral(); 2203 Literal* key = prop->key()->AsLiteral();
2214 ASSERT(!key->value()->IsSmi()); 2204 ASSERT(!key->value()->IsSmi());
2215 __ mov(LoadIC::NameRegister(), Immediate(key->value())); 2205 __ mov(ecx, Immediate(key->value()));
2216 CallLoadIC(NOT_CONTEXTUAL, prop->PropertyFeedbackId()); 2206 CallLoadIC(NOT_CONTEXTUAL, prop->PropertyFeedbackId());
2217 } 2207 }
2218 2208
2219 2209
2220 void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { 2210 void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) {
2221 SetSourcePosition(prop->position()); 2211 SetSourcePosition(prop->position());
2222 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); 2212 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
2223 CallIC(ic, prop->PropertyFeedbackId()); 2213 CallIC(ic, prop->PropertyFeedbackId());
2224 } 2214 }
2225 2215
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 context()->Plug(eax); 2493 context()->Plug(eax);
2504 } 2494 }
2505 2495
2506 2496
2507 void FullCodeGenerator::VisitProperty(Property* expr) { 2497 void FullCodeGenerator::VisitProperty(Property* expr) {
2508 Comment cmnt(masm_, "[ Property"); 2498 Comment cmnt(masm_, "[ Property");
2509 Expression* key = expr->key(); 2499 Expression* key = expr->key();
2510 2500
2511 if (key->IsPropertyName()) { 2501 if (key->IsPropertyName()) {
2512 VisitForAccumulatorValue(expr->obj()); 2502 VisitForAccumulatorValue(expr->obj());
2513 __ mov(LoadIC::ReceiverRegister(), result_register()); 2503 __ mov(edx, result_register());
2514 EmitNamedPropertyLoad(expr); 2504 EmitNamedPropertyLoad(expr);
2515 PrepareForBailoutForId(expr->LoadId(), TOS_REG); 2505 PrepareForBailoutForId(expr->LoadId(), TOS_REG);
2516 context()->Plug(eax); 2506 context()->Plug(eax);
2517 } else { 2507 } else {
2518 VisitForStackValue(expr->obj()); 2508 VisitForStackValue(expr->obj());
2519 VisitForAccumulatorValue(expr->key()); 2509 VisitForAccumulatorValue(expr->key());
2520 __ pop(KeyedLoadIC::ReceiverRegister()); // Object. 2510 __ pop(edx); // Object.
2521 __ mov(KeyedLoadIC::NameRegister(), result_register()); // Key. 2511 __ mov(ecx, result_register()); // Key.
2522 EmitKeyedPropertyLoad(expr); 2512 EmitKeyedPropertyLoad(expr);
2523 context()->Plug(eax); 2513 context()->Plug(eax);
2524 } 2514 }
2525 } 2515 }
2526 2516
2527 2517
2528 void FullCodeGenerator::CallIC(Handle<Code> code, 2518 void FullCodeGenerator::CallIC(Handle<Code> code,
2529 TypeFeedbackId ast_id) { 2519 TypeFeedbackId ast_id) {
2530 ic_total_count_++; 2520 ic_total_count_++;
2531 __ call(code, RelocInfo::CODE_TARGET, ast_id); 2521 __ call(code, RelocInfo::CODE_TARGET, ast_id);
(...skipping 12 matching lines...) Expand all
2544 { StackValueContext context(this); 2534 { StackValueContext context(this);
2545 EmitVariableLoad(callee->AsVariableProxy()); 2535 EmitVariableLoad(callee->AsVariableProxy());
2546 PrepareForBailout(callee, NO_REGISTERS); 2536 PrepareForBailout(callee, NO_REGISTERS);
2547 } 2537 }
2548 // Push undefined as receiver. This is patched in the method prologue if it 2538 // Push undefined as receiver. This is patched in the method prologue if it
2549 // is a sloppy mode method. 2539 // is a sloppy mode method.
2550 __ push(Immediate(isolate()->factory()->undefined_value())); 2540 __ push(Immediate(isolate()->factory()->undefined_value()));
2551 } else { 2541 } else {
2552 // Load the function from the receiver. 2542 // Load the function from the receiver.
2553 ASSERT(callee->IsProperty()); 2543 ASSERT(callee->IsProperty());
2554 __ mov(LoadIC::ReceiverRegister(), Operand(esp, 0)); 2544 __ mov(edx, Operand(esp, 0));
2555 EmitNamedPropertyLoad(callee->AsProperty()); 2545 EmitNamedPropertyLoad(callee->AsProperty());
2556 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG); 2546 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG);
2557 // Push the target function under the receiver. 2547 // Push the target function under the receiver.
2558 __ push(Operand(esp, 0)); 2548 __ push(Operand(esp, 0));
2559 __ mov(Operand(esp, kPointerSize), eax); 2549 __ mov(Operand(esp, kPointerSize), eax);
2560 } 2550 }
2561 2551
2562 EmitCall(expr, call_type); 2552 EmitCall(expr, call_type);
2563 } 2553 }
2564 2554
2565 2555
2566 // Code common for calls using the IC. 2556 // Code common for calls using the IC.
2567 void FullCodeGenerator::EmitKeyedCallWithLoadIC(Call* expr, 2557 void FullCodeGenerator::EmitKeyedCallWithLoadIC(Call* expr,
2568 Expression* key) { 2558 Expression* key) {
2569 // Load the key. 2559 // Load the key.
2570 VisitForAccumulatorValue(key); 2560 VisitForAccumulatorValue(key);
2571 2561
2572 Expression* callee = expr->expression(); 2562 Expression* callee = expr->expression();
2573 2563
2574 // Load the function from the receiver. 2564 // Load the function from the receiver.
2575 ASSERT(callee->IsProperty()); 2565 ASSERT(callee->IsProperty());
2576 __ mov(KeyedLoadIC::ReceiverRegister(), Operand(esp, 0)); 2566 __ mov(edx, Operand(esp, 0));
2577 // Move the key into the right register for the keyed load IC. 2567 // Move the key into the right register for the keyed load IC.
2578 __ mov(KeyedLoadIC::NameRegister(), eax); 2568 __ mov(ecx, eax);
2579 EmitKeyedPropertyLoad(callee->AsProperty()); 2569 EmitKeyedPropertyLoad(callee->AsProperty());
2580 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG); 2570 PrepareForBailoutForId(callee->AsProperty()->LoadId(), TOS_REG);
2581 2571
2582 // Push the target function under the receiver. 2572 // Push the target function under the receiver.
2583 __ push(Operand(esp, 0)); 2573 __ push(Operand(esp, 0));
2584 __ mov(Operand(esp, kPointerSize), eax); 2574 __ mov(Operand(esp, kPointerSize), eax);
2585 2575
2586 EmitCall(expr, CallIC::METHOD); 2576 EmitCall(expr, CallIC::METHOD);
2587 } 2577 }
2588 2578
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
4026 4016
4027 Comment cmnt(masm_, "[ CallRuntime"); 4017 Comment cmnt(masm_, "[ CallRuntime");
4028 ZoneList<Expression*>* args = expr->arguments(); 4018 ZoneList<Expression*>* args = expr->arguments();
4029 4019
4030 if (expr->is_jsruntime()) { 4020 if (expr->is_jsruntime()) {
4031 // Push the builtins object as receiver. 4021 // Push the builtins object as receiver.
4032 __ mov(eax, GlobalObjectOperand()); 4022 __ mov(eax, GlobalObjectOperand());
4033 __ push(FieldOperand(eax, GlobalObject::kBuiltinsOffset)); 4023 __ push(FieldOperand(eax, GlobalObject::kBuiltinsOffset));
4034 4024
4035 // Load the function from the receiver. 4025 // Load the function from the receiver.
4036 __ mov(LoadIC::ReceiverRegister(), Operand(esp, 0)); 4026 __ mov(edx, Operand(esp, 0));
4037 __ mov(LoadIC::NameRegister(), Immediate(expr->name())); 4027 __ mov(ecx, Immediate(expr->name()));
4038 CallLoadIC(NOT_CONTEXTUAL, expr->CallRuntimeFeedbackId()); 4028 CallLoadIC(NOT_CONTEXTUAL, expr->CallRuntimeFeedbackId());
4039 4029
4040 // Push the target function under the receiver. 4030 // Push the target function under the receiver.
4041 __ push(Operand(esp, 0)); 4031 __ push(Operand(esp, 0));
4042 __ mov(Operand(esp, kPointerSize), eax); 4032 __ mov(Operand(esp, kPointerSize), eax);
4043 4033
4044 // Code common for calls using the IC. 4034 // Code common for calls using the IC.
4045 ZoneList<Expression*>* args = expr->arguments(); 4035 ZoneList<Expression*>* args = expr->arguments();
4046 int arg_count = args->length(); 4036 int arg_count = args->length();
4047 for (int i = 0; i < arg_count; i++) { 4037 for (int i = 0; i < arg_count; i++) {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
4210 AccumulatorValueContext context(this); 4200 AccumulatorValueContext context(this);
4211 EmitVariableLoad(expr->expression()->AsVariableProxy()); 4201 EmitVariableLoad(expr->expression()->AsVariableProxy());
4212 } else { 4202 } else {
4213 // Reserve space for result of postfix operation. 4203 // Reserve space for result of postfix operation.
4214 if (expr->is_postfix() && !context()->IsEffect()) { 4204 if (expr->is_postfix() && !context()->IsEffect()) {
4215 __ push(Immediate(Smi::FromInt(0))); 4205 __ push(Immediate(Smi::FromInt(0)));
4216 } 4206 }
4217 if (assign_type == NAMED_PROPERTY) { 4207 if (assign_type == NAMED_PROPERTY) {
4218 // Put the object both on the stack and in edx. 4208 // Put the object both on the stack and in edx.
4219 VisitForAccumulatorValue(prop->obj()); 4209 VisitForAccumulatorValue(prop->obj());
4220 ASSERT(!eax.is(LoadIC::ReceiverRegister()));
4221 __ push(eax); 4210 __ push(eax);
4222 __ mov(LoadIC::ReceiverRegister(), eax); 4211 __ mov(edx, eax);
4223 EmitNamedPropertyLoad(prop); 4212 EmitNamedPropertyLoad(prop);
4224 } else { 4213 } else {
4225 VisitForStackValue(prop->obj()); 4214 VisitForStackValue(prop->obj());
4226 VisitForStackValue(prop->key()); 4215 VisitForStackValue(prop->key());
4227 __ mov(KeyedLoadIC::ReceiverRegister(), 4216 __ mov(edx, Operand(esp, kPointerSize)); // Object.
4228 Operand(esp, kPointerSize)); // Object. 4217 __ mov(ecx, Operand(esp, 0)); // Key.
4229 __ mov(KeyedLoadIC::NameRegister(), Operand(esp, 0)); // Key.
4230 EmitKeyedPropertyLoad(prop); 4218 EmitKeyedPropertyLoad(prop);
4231 } 4219 }
4232 } 4220 }
4233 4221
4234 // We need a second deoptimization point after loading the value 4222 // We need a second deoptimization point after loading the value
4235 // in case evaluating the property load my have a side effect. 4223 // in case evaluating the property load my have a side effect.
4236 if (assign_type == VARIABLE) { 4224 if (assign_type == VARIABLE) {
4237 PrepareForBailout(expr->expression(), TOS_REG); 4225 PrepareForBailout(expr->expression(), TOS_REG);
4238 } else { 4226 } else {
4239 PrepareForBailoutForId(prop->LoadId(), TOS_REG); 4227 PrepareForBailoutForId(prop->LoadId(), TOS_REG);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
4376 } 4364 }
4377 4365
4378 4366
4379 void FullCodeGenerator::VisitForTypeofValue(Expression* expr) { 4367 void FullCodeGenerator::VisitForTypeofValue(Expression* expr) {
4380 VariableProxy* proxy = expr->AsVariableProxy(); 4368 VariableProxy* proxy = expr->AsVariableProxy();
4381 ASSERT(!context()->IsEffect()); 4369 ASSERT(!context()->IsEffect());
4382 ASSERT(!context()->IsTest()); 4370 ASSERT(!context()->IsTest());
4383 4371
4384 if (proxy != NULL && proxy->var()->IsUnallocated()) { 4372 if (proxy != NULL && proxy->var()->IsUnallocated()) {
4385 Comment cmnt(masm_, "[ Global variable"); 4373 Comment cmnt(masm_, "[ Global variable");
4386 __ mov(LoadIC::ReceiverRegister(), GlobalObjectOperand()); 4374 __ mov(edx, GlobalObjectOperand());
4387 __ mov(LoadIC::NameRegister(), Immediate(proxy->name())); 4375 __ mov(ecx, Immediate(proxy->name()));
4388 // Use a regular load, not a contextual load, to avoid a reference 4376 // Use a regular load, not a contextual load, to avoid a reference
4389 // error. 4377 // error.
4390 CallLoadIC(NOT_CONTEXTUAL); 4378 CallLoadIC(NOT_CONTEXTUAL);
4391 PrepareForBailout(expr, TOS_REG); 4379 PrepareForBailout(expr, TOS_REG);
4392 context()->Plug(eax); 4380 context()->Plug(eax);
4393 } else if (proxy != NULL && proxy->var()->IsLookupSlot()) { 4381 } else if (proxy != NULL && proxy->var()->IsLookupSlot()) {
4394 Comment cmnt(masm_, "[ Lookup slot"); 4382 Comment cmnt(masm_, "[ Lookup slot");
4395 Label done, slow; 4383 Label done, slow;
4396 4384
4397 // Generate code for loading from variables potentially shadowed 4385 // Generate code for loading from variables potentially shadowed
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
4811 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4799 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4812 Assembler::target_address_at(call_target_address, 4800 Assembler::target_address_at(call_target_address,
4813 unoptimized_code)); 4801 unoptimized_code));
4814 return OSR_AFTER_STACK_CHECK; 4802 return OSR_AFTER_STACK_CHECK;
4815 } 4803 }
4816 4804
4817 4805
4818 } } // namespace v8::internal 4806 } } // namespace v8::internal
4819 4807
4820 #endif // V8_TARGET_ARCH_IA32 4808 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/debug-ia32.cc ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698