Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2529 __ mov(result, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 2529 __ mov(result, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
| 2530 } | 2530 } |
| 2531 | 2531 |
| 2532 | 2532 |
| 2533 void LCodeGen::DoContext(LContext* instr) { | 2533 void LCodeGen::DoContext(LContext* instr) { |
| 2534 Register result = ToRegister(instr->result()); | 2534 Register result = ToRegister(instr->result()); |
| 2535 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); | 2535 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 2536 } | 2536 } |
| 2537 | 2537 |
| 2538 | 2538 |
| 2539 void LCodeGen::DoInlinedContext(LInlinedContext* instr) { | |
| 2540 Register result = ToRegister(instr->result()); | |
| 2541 __ mov(result, instr->closure()); | |
|
Kevin Millikin (Chromium)
2011/09/15 11:17:24
Does something like
__ mov(result, Handle<Context
| |
| 2542 __ mov(result, FieldOperand(result, JSFunction::kContextOffset)); | |
| 2543 } | |
| 2544 | |
| 2545 | |
| 2539 void LCodeGen::DoOuterContext(LOuterContext* instr) { | 2546 void LCodeGen::DoOuterContext(LOuterContext* instr) { |
| 2540 Register context = ToRegister(instr->context()); | 2547 Register context = ToRegister(instr->context()); |
| 2541 Register result = ToRegister(instr->result()); | 2548 Register result = ToRegister(instr->result()); |
| 2542 __ mov(result, | 2549 __ mov(result, |
| 2543 Operand(context, Context::SlotOffset(Context::PREVIOUS_INDEX))); | 2550 Operand(context, Context::SlotOffset(Context::PREVIOUS_INDEX))); |
| 2544 } | 2551 } |
| 2545 | 2552 |
| 2546 | 2553 |
| 2547 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { | 2554 void LCodeGen::DoGlobalObject(LGlobalObject* instr) { |
| 2548 Register context = ToRegister(instr->context()); | 2555 Register context = ToRegister(instr->context()); |
| (...skipping 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4378 env->deoptimization_index()); | 4385 env->deoptimization_index()); |
| 4379 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4386 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
| 4380 } | 4387 } |
| 4381 | 4388 |
| 4382 | 4389 |
| 4383 #undef __ | 4390 #undef __ |
| 4384 | 4391 |
| 4385 } } // namespace v8::internal | 4392 } } // namespace v8::internal |
| 4386 | 4393 |
| 4387 #endif // V8_TARGET_ARCH_IA32 | 4394 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |