OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 }; | 59 }; |
60 | 60 |
61 | 61 |
62 #define __ masm()-> | 62 #define __ masm()-> |
63 | 63 |
64 bool LCodeGen::GenerateCode() { | 64 bool LCodeGen::GenerateCode() { |
65 HPhase phase("Z_Code generation", chunk()); | 65 HPhase phase("Z_Code generation", chunk()); |
66 ASSERT(is_unused()); | 66 ASSERT(is_unused()); |
67 status_ = GENERATING; | 67 status_ = GENERATING; |
68 | 68 |
69 CodeStub::GenerateFPStubs(); | |
70 | |
71 // Open a frame scope to indicate that there is a frame on the stack. The | 69 // Open a frame scope to indicate that there is a frame on the stack. The |
72 // NONE indicates that the scope shouldn't actually generate code to set up | 70 // NONE indicates that the scope shouldn't actually generate code to set up |
73 // the frame (that is done in GeneratePrologue). | 71 // the frame (that is done in GeneratePrologue). |
74 FrameScope frame_scope(masm_, StackFrame::NONE); | 72 FrameScope frame_scope(masm_, StackFrame::NONE); |
75 | 73 |
76 return GeneratePrologue() && | 74 return GeneratePrologue() && |
77 GenerateBody() && | 75 GenerateBody() && |
78 GenerateDeferredCode() && | 76 GenerateDeferredCode() && |
79 GenerateDeoptJumpTable() && | 77 GenerateDeoptJumpTable() && |
80 GenerateSafepointTable(); | 78 GenerateSafepointTable(); |
(...skipping 6028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6109 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 6107 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
6110 __ ldr(result, FieldMemOperand(scratch, | 6108 __ ldr(result, FieldMemOperand(scratch, |
6111 FixedArray::kHeaderSize - kPointerSize)); | 6109 FixedArray::kHeaderSize - kPointerSize)); |
6112 __ bind(&done); | 6110 __ bind(&done); |
6113 } | 6111 } |
6114 | 6112 |
6115 | 6113 |
6116 #undef __ | 6114 #undef __ |
6117 | 6115 |
6118 } } // namespace v8::internal | 6116 } } // namespace v8::internal |
OLD | NEW |