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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 23496046: Remove indirection when calling Runtime_StackGuard. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | 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 // 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 5372 matching lines...) Expand 10 before | Expand all | Expand 10 after
5383 5383
5384 ASSERT(instr->HasEnvironment()); 5384 ASSERT(instr->HasEnvironment());
5385 LEnvironment* env = instr->environment(); 5385 LEnvironment* env = instr->environment();
5386 // There is no LLazyBailout instruction for stack-checks. We have to 5386 // There is no LLazyBailout instruction for stack-checks. We have to
5387 // prepare for lazy deoptimization explicitly here. 5387 // prepare for lazy deoptimization explicitly here.
5388 if (instr->hydrogen()->is_function_entry()) { 5388 if (instr->hydrogen()->is_function_entry()) {
5389 // Perform stack overflow check. 5389 // Perform stack overflow check.
5390 Label done; 5390 Label done;
5391 __ CompareRoot(rsp, Heap::kStackLimitRootIndex); 5391 __ CompareRoot(rsp, Heap::kStackLimitRootIndex);
5392 __ j(above_equal, &done, Label::kNear); 5392 __ j(above_equal, &done, Label::kNear);
5393 CallCode(isolate()->builtins()->StackCheck(), 5393 CallRuntime(Runtime::kStackGuard, 0, instr);
5394 RelocInfo::CODE_TARGET,
5395 instr);
5396 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size()); 5394 EnsureSpaceForLazyDeopt(Deoptimizer::patch_size());
5397 last_lazy_deopt_pc_ = masm()->pc_offset(); 5395 last_lazy_deopt_pc_ = masm()->pc_offset();
5398 __ bind(&done); 5396 __ bind(&done);
5399 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt); 5397 RegisterEnvironmentForDeoptimization(env, Safepoint::kLazyDeopt);
5400 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 5398 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
5401 } else { 5399 } else {
5402 ASSERT(instr->hydrogen()->is_backwards_branch()); 5400 ASSERT(instr->hydrogen()->is_backwards_branch());
5403 // Perform stack overflow check if this goto needs it before jumping. 5401 // Perform stack overflow check if this goto needs it before jumping.
5404 DeferredStackCheck* deferred_stack_check = 5402 DeferredStackCheck* deferred_stack_check =
5405 new(zone()) DeferredStackCheck(this, instr); 5403 new(zone()) DeferredStackCheck(this, instr);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
5519 FixedArray::kHeaderSize - kPointerSize)); 5517 FixedArray::kHeaderSize - kPointerSize));
5520 __ bind(&done); 5518 __ bind(&done);
5521 } 5519 }
5522 5520
5523 5521
5524 #undef __ 5522 #undef __
5525 5523
5526 } } // namespace v8::internal 5524 } } // namespace v8::internal
5527 5525
5528 #endif // V8_TARGET_ARCH_X64 5526 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698