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 | |
91 return GeneratePrologue() && | 85 return GeneratePrologue() && |
92 GenerateBody() && | 86 GenerateBody() && |
93 GenerateDeferredCode() && | 87 GenerateDeferredCode() && |
94 GenerateDeoptJumpTable() && | 88 GenerateDeoptJumpTable() && |
95 GenerateSafepointTable(); | 89 GenerateSafepointTable(); |
96 } | 90 } |
97 | 91 |
98 | 92 |
99 void LCodeGen::FinishCode(Handle<Code> code) { | 93 void LCodeGen::FinishCode(Handle<Code> code) { |
100 ASSERT(is_done()); | 94 ASSERT(is_done()); |
(...skipping 4448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4549 ASSERT(osr_pc_offset_ == -1); | 4543 ASSERT(osr_pc_offset_ == -1); |
4550 osr_pc_offset_ = masm()->pc_offset(); | 4544 osr_pc_offset_ = masm()->pc_offset(); |
4551 } | 4545 } |
4552 | 4546 |
4553 | 4547 |
4554 | 4548 |
4555 | 4549 |
4556 #undef __ | 4550 #undef __ |
4557 | 4551 |
4558 } } // namespace v8::internal | 4552 } } // namespace v8::internal |
OLD | NEW |