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

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

Issue 8557003: MIPS: Add a level of indirection to exception handler addresses. (Closed)
Patch Set: Rebased on r10024 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
« no previous file with comments | « src/mips/frames-mips.h ('k') | src/mips/macro-assembler-mips.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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/mips/frames-mips.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698