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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(CompilationInfo* info) { |
127 ASSERT(info_ == NULL); | 127 ASSERT(info_ == NULL); |
128 info_ = info; | 128 info_ = info; |
129 scope_ = info->scope(); | 129 scope_ = info->scope(); |
| 130 handler_table_ = |
| 131 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); |
130 SetFunctionPosition(function()); | 132 SetFunctionPosition(function()); |
131 Comment cmnt(masm_, "[ function compiled by full code generator"); | 133 Comment cmnt(masm_, "[ function compiled by full code generator"); |
132 | 134 |
133 #ifdef DEBUG | 135 #ifdef DEBUG |
134 if (strlen(FLAG_stop_at) > 0 && | 136 if (strlen(FLAG_stop_at) > 0 && |
135 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 137 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
136 __ stop("stop-at"); | 138 __ stop("stop-at"); |
137 } | 139 } |
138 #endif | 140 #endif |
139 | 141 |
(...skipping 4255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4395 *context_length = 0; | 4397 *context_length = 0; |
4396 return previous_; | 4398 return previous_; |
4397 } | 4399 } |
4398 | 4400 |
4399 | 4401 |
4400 #undef __ | 4402 #undef __ |
4401 | 4403 |
4402 } } // namespace v8::internal | 4404 } } // namespace v8::internal |
4403 | 4405 |
4404 #endif // V8_TARGET_ARCH_ARM | 4406 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |