| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // o esi: our context | 110 // o esi: our context |
| 111 // o ebp: our caller's frame pointer | 111 // o ebp: our caller's frame pointer |
| 112 // o esp: stack pointer (pointing to return address) | 112 // o esp: stack pointer (pointing to return address) |
| 113 // | 113 // |
| 114 // The function builds a JS frame. Please see JavaScriptFrameConstants in | 114 // The function builds a JS frame. Please see JavaScriptFrameConstants in |
| 115 // frames-ia32.h for its layout. | 115 // frames-ia32.h for its layout. |
| 116 void FullCodeGenerator::Generate(CompilationInfo* info) { | 116 void FullCodeGenerator::Generate(CompilationInfo* info) { |
| 117 ASSERT(info_ == NULL); | 117 ASSERT(info_ == NULL); |
| 118 info_ = info; | 118 info_ = info; |
| 119 scope_ = info->scope(); | 119 scope_ = info->scope(); |
| 120 handler_table_ = | |
| 121 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); | |
| 122 SetFunctionPosition(function()); | 120 SetFunctionPosition(function()); |
| 123 Comment cmnt(masm_, "[ function compiled by full code generator"); | 121 Comment cmnt(masm_, "[ function compiled by full code generator"); |
| 124 | 122 |
| 125 #ifdef DEBUG | 123 #ifdef DEBUG |
| 126 if (strlen(FLAG_stop_at) > 0 && | 124 if (strlen(FLAG_stop_at) > 0 && |
| 127 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { | 125 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { |
| 128 __ int3(); | 126 __ int3(); |
| 129 } | 127 } |
| 130 #endif | 128 #endif |
| 131 | 129 |
| (...skipping 4210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4342 *context_length = 0; | 4340 *context_length = 0; |
| 4343 return previous_; | 4341 return previous_; |
| 4344 } | 4342 } |
| 4345 | 4343 |
| 4346 | 4344 |
| 4347 #undef __ | 4345 #undef __ |
| 4348 | 4346 |
| 4349 } } // namespace v8::internal | 4347 } } // namespace v8::internal |
| 4350 | 4348 |
| 4351 #endif // V8_TARGET_ARCH_IA32 | 4349 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |