| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 // o fp: our caller's frame pointer | 130 // o fp: our caller's frame pointer |
| 131 // o sp: stack pointer | 131 // o sp: stack pointer |
| 132 // o ra: return address | 132 // o ra: return address |
| 133 // | 133 // |
| 134 // The function builds a JS frame. Please see JavaScriptFrameConstants in | 134 // The function builds a JS frame. Please see JavaScriptFrameConstants in |
| 135 // frames-mips.h for its layout. | 135 // frames-mips.h for its layout. |
| 136 void FullCodeGenerator::Generate(CompilationInfo* info) { | 136 void FullCodeGenerator::Generate(CompilationInfo* info) { |
| 137 ASSERT(info_ == NULL); | 137 ASSERT(info_ == NULL); |
| 138 info_ = info; | 138 info_ = info; |
| 139 scope_ = info->scope(); | 139 scope_ = info->scope(); |
| 140 handler_table_ = |
| 141 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); |
| 140 SetFunctionPosition(function()); | 142 SetFunctionPosition(function()); |
| 141 Comment cmnt(masm_, "[ function compiled by full code generator"); | 143 Comment cmnt(masm_, "[ function compiled by full code generator"); |
| 142 | 144 |
| 143 #ifdef DEBUG | 145 #ifdef DEBUG |
| 144 if (strlen(FLAG_stop_at) > 0 && | 146 if (strlen(FLAG_stop_at) > 0 && |
| 145 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 147 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
| 146 __ stop("stop-at"); | 148 __ stop("stop-at"); |
| 147 } | 149 } |
| 148 #endif | 150 #endif |
| 149 | 151 |
| (...skipping 4284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4434 *context_length = 0; | 4436 *context_length = 0; |
| 4435 return previous_; | 4437 return previous_; |
| 4436 } | 4438 } |
| 4437 | 4439 |
| 4438 | 4440 |
| 4439 #undef __ | 4441 #undef __ |
| 4440 | 4442 |
| 4441 } } // namespace v8::internal | 4443 } } // namespace v8::internal |
| 4442 | 4444 |
| 4443 #endif // V8_TARGET_ARCH_MIPS | 4445 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |