| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 | 65 |
| 66 #define __ masm()-> | 66 #define __ masm()-> |
| 67 | 67 |
| 68 bool LCodeGen::GenerateCode() { | 68 bool LCodeGen::GenerateCode() { |
| 69 HPhase phase("Code generation", chunk()); | 69 HPhase phase("Code generation", chunk()); |
| 70 ASSERT(is_unused()); | 70 ASSERT(is_unused()); |
| 71 status_ = GENERATING; | 71 status_ = GENERATING; |
| 72 CpuFeatures::Scope scope(SSE2); | 72 CpuFeatures::Scope scope(SSE2); |
| 73 |
| 74 // Open a frame scope to indicate that there is a frame on the stack. The |
| 75 // MANUAL indicates that the scope shouldn't actually generate code to set up |
| 76 // the frame (that is done in GeneratePrologue). |
| 77 FrameScope frame_scope(masm_, StackFrame::MANUAL); |
| 78 |
| 73 return GeneratePrologue() && | 79 return GeneratePrologue() && |
| 74 GenerateBody() && | 80 GenerateBody() && |
| 75 GenerateDeferredCode() && | 81 GenerateDeferredCode() && |
| 76 GenerateSafepointTable(); | 82 GenerateSafepointTable(); |
| 77 } | 83 } |
| 78 | 84 |
| 79 | 85 |
| 80 void LCodeGen::FinishCode(Handle<Code> code) { | 86 void LCodeGen::FinishCode(Handle<Code> code) { |
| 81 ASSERT(is_done()); | 87 ASSERT(is_done()); |
| 82 code->set_stack_slots(GetStackSlotCount()); | 88 code->set_stack_slots(GetStackSlotCount()); |
| (...skipping 4371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4454 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 4460 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 4455 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4461 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
| 4456 } | 4462 } |
| 4457 | 4463 |
| 4458 | 4464 |
| 4459 #undef __ | 4465 #undef __ |
| 4460 | 4466 |
| 4461 } } // namespace v8::internal | 4467 } } // namespace v8::internal |
| 4462 | 4468 |
| 4463 #endif // V8_TARGET_ARCH_IA32 | 4469 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |