| 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); | |
| 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 } |
| 140 #endif | 138 #endif |
| 141 | 139 |
| (...skipping 4255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4397 *context_length = 0; | 4395 *context_length = 0; |
| 4398 return previous_; | 4396 return previous_; |
| 4399 } | 4397 } |
| 4400 | 4398 |
| 4401 | 4399 |
| 4402 #undef __ | 4400 #undef __ |
| 4403 | 4401 |
| 4404 } } // namespace v8::internal | 4402 } } // namespace v8::internal |
| 4405 | 4403 |
| 4406 #endif // V8_TARGET_ARCH_ARM | 4404 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |