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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // | 116 // |
117 // The live registers are: | 117 // The live registers are: |
118 // o r1: the JS function object being called (i.e., ourselves) | 118 // o r1: the JS function object being called (i.e., ourselves) |
119 // o cp: our context | 119 // o cp: our context |
120 // o fp: our caller's frame pointer | 120 // o fp: our caller's frame pointer |
121 // o sp: stack pointer | 121 // o sp: stack pointer |
122 // o lr: return address | 122 // o lr: return address |
123 // | 123 // |
124 // The function builds a JS frame. Please see JavaScriptFrameConstants in | 124 // The function builds a JS frame. Please see JavaScriptFrameConstants in |
125 // frames-arm.h for its layout. | 125 // frames-arm.h for its layout. |
126 void FullCodeGenerator::Generate(CompilationInfo* info) { | 126 void FullCodeGenerator::Generate() { |
127 ASSERT(info_ == NULL); | 127 CompilationInfo* info = info_; |
128 info_ = info; | |
129 scope_ = info->scope(); | |
130 handler_table_ = | 128 handler_table_ = |
131 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); | 129 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); |
132 SetFunctionPosition(function()); | 130 SetFunctionPosition(function()); |
133 Comment cmnt(masm_, "[ function compiled by full code generator"); | 131 Comment cmnt(masm_, "[ function compiled by full code generator"); |
134 | 132 |
135 #ifdef DEBUG | 133 #ifdef DEBUG |
136 if (strlen(FLAG_stop_at) > 0 && | 134 if (strlen(FLAG_stop_at) > 0 && |
137 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 135 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
138 __ stop("stop-at"); | 136 __ stop("stop-at"); |
139 } | 137 } |
(...skipping 4280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4420 *context_length = 0; | 4418 *context_length = 0; |
4421 return previous_; | 4419 return previous_; |
4422 } | 4420 } |
4423 | 4421 |
4424 | 4422 |
4425 #undef __ | 4423 #undef __ |
4426 | 4424 |
4427 } } // namespace v8::internal | 4425 } } // namespace v8::internal |
4428 | 4426 |
4429 #endif // V8_TARGET_ARCH_ARM | 4427 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |