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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 | 76 |
77 #define __ masm()-> | 77 #define __ masm()-> |
78 | 78 |
79 bool LCodeGen::GenerateCode() { | 79 bool LCodeGen::GenerateCode() { |
80 HPhase phase("Code generation", chunk()); | 80 HPhase phase("Code generation", chunk()); |
81 ASSERT(is_unused()); | 81 ASSERT(is_unused()); |
82 status_ = GENERATING; | 82 status_ = GENERATING; |
83 CpuFeatures::Scope scope1(VFP3); | 83 CpuFeatures::Scope scope1(VFP3); |
84 CpuFeatures::Scope scope2(ARMv7); | 84 CpuFeatures::Scope scope2(ARMv7); |
| 85 |
| 86 // Open a frame scope to indicate that there is a frame on the stack. The |
| 87 // NONE indicates that the scope shouldn't actually generate code to set up |
| 88 // the frame (that is done in GeneatePrologue). |
| 89 FrameScope frame_scope(masm_, StackFrame::NONE); |
| 90 |
85 return GeneratePrologue() && | 91 return GeneratePrologue() && |
86 GenerateBody() && | 92 GenerateBody() && |
87 GenerateDeferredCode() && | 93 GenerateDeferredCode() && |
88 GenerateDeoptJumpTable() && | 94 GenerateDeoptJumpTable() && |
89 GenerateSafepointTable(); | 95 GenerateSafepointTable(); |
90 } | 96 } |
91 | 97 |
92 | 98 |
93 void LCodeGen::FinishCode(Handle<Code> code) { | 99 void LCodeGen::FinishCode(Handle<Code> code) { |
94 ASSERT(is_done()); | 100 ASSERT(is_done()); |
(...skipping 4428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4523 ASSERT(osr_pc_offset_ == -1); | 4529 ASSERT(osr_pc_offset_ == -1); |
4524 osr_pc_offset_ = masm()->pc_offset(); | 4530 osr_pc_offset_ = masm()->pc_offset(); |
4525 } | 4531 } |
4526 | 4532 |
4527 | 4533 |
4528 | 4534 |
4529 | 4535 |
4530 #undef __ | 4536 #undef __ |
4531 | 4537 |
4532 } } // namespace v8::internal | 4538 } } // namespace v8::internal |
OLD | NEW |