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 4295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4378 env->deoptimization_index()); | 4384 env->deoptimization_index()); |
4379 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4385 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
4380 } | 4386 } |
4381 | 4387 |
4382 | 4388 |
4383 #undef __ | 4389 #undef __ |
4384 | 4390 |
4385 } } // namespace v8::internal | 4391 } } // namespace v8::internal |
4386 | 4392 |
4387 #endif // V8_TARGET_ARCH_IA32 | 4393 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |