Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 8462010: Add a level of indirection to exception handler addresses. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporate review changes. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/frames-arm.h ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm/frames-arm.h ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698