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

Side by Side Diff: src/compiler/ia32/code-generator-ia32.cc

Issue 943503003: Emit exception handler table in TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_trycatch-4
Patch Set: Fix Win64 compilation failure. Created 5 years, 10 months 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/compiler/code-generator.cc ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/ia32/assembler-ia32.h" 10 #include "src/ia32/assembler-ia32.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 switch (ArchOpcodeField::decode(instr->opcode())) { 285 switch (ArchOpcodeField::decode(instr->opcode())) {
286 case kArchCallCodeObject: { 286 case kArchCallCodeObject: {
287 EnsureSpaceForLazyDeopt(); 287 EnsureSpaceForLazyDeopt();
288 if (HasImmediateInput(instr, 0)) { 288 if (HasImmediateInput(instr, 0)) {
289 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0)); 289 Handle<Code> code = Handle<Code>::cast(i.InputHeapObject(0));
290 __ call(code, RelocInfo::CODE_TARGET); 290 __ call(code, RelocInfo::CODE_TARGET);
291 } else { 291 } else {
292 Register reg = i.InputRegister(0); 292 Register reg = i.InputRegister(0);
293 __ call(Operand(reg, Code::kHeaderSize - kHeapObjectTag)); 293 __ call(Operand(reg, Code::kHeaderSize - kHeapObjectTag));
294 } 294 }
295 AddSafepointAndDeopt(instr); 295 RecordCallPosition(instr);
296 break; 296 break;
297 } 297 }
298 case kArchCallJSFunction: { 298 case kArchCallJSFunction: {
299 EnsureSpaceForLazyDeopt(); 299 EnsureSpaceForLazyDeopt();
300 Register func = i.InputRegister(0); 300 Register func = i.InputRegister(0);
301 if (FLAG_debug_code) { 301 if (FLAG_debug_code) {
302 // Check the function's context matches the context argument. 302 // Check the function's context matches the context argument.
303 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset)); 303 __ cmp(esi, FieldOperand(func, JSFunction::kContextOffset));
304 __ Assert(equal, kWrongFunctionContext); 304 __ Assert(equal, kWrongFunctionContext);
305 } 305 }
306 __ call(FieldOperand(func, JSFunction::kCodeEntryOffset)); 306 __ call(FieldOperand(func, JSFunction::kCodeEntryOffset));
307 AddSafepointAndDeopt(instr); 307 RecordCallPosition(instr);
308 break; 308 break;
309 } 309 }
310 case kArchJmp: 310 case kArchJmp:
311 AssembleArchJump(i.InputRpo(0)); 311 AssembleArchJump(i.InputRpo(0));
312 break; 312 break;
313 case kArchLookupSwitch: 313 case kArchLookupSwitch:
314 AssembleArchLookupSwitch(instr); 314 AssembleArchLookupSwitch(instr);
315 break; 315 break;
316 case kArchTableSwitch: 316 case kArchTableSwitch:
317 AssembleArchTableSwitch(instr); 317 AssembleArchTableSwitch(instr);
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 } 1270 }
1271 } 1271 }
1272 MarkLazyDeoptSite(); 1272 MarkLazyDeoptSite();
1273 } 1273 }
1274 1274
1275 #undef __ 1275 #undef __
1276 1276
1277 } // namespace compiler 1277 } // namespace compiler
1278 } // namespace internal 1278 } // namespace internal
1279 } // namespace v8 1279 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698