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

Side by Side Diff: src/mips/full-codegen-mips.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/ia32/lithium-codegen-ia32.cc ('k') | src/mips/lithium-codegen-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 VisitVariableDeclaration(function); 291 VisitVariableDeclaration(function);
292 } 292 }
293 VisitDeclarations(scope()->declarations()); 293 VisitDeclarations(scope()->declarations());
294 } 294 }
295 295
296 { Comment cmnt(masm_, "[ Stack check"); 296 { Comment cmnt(masm_, "[ Stack check");
297 PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS); 297 PrepareForBailoutForId(BailoutId::Declarations(), NO_REGISTERS);
298 Label ok; 298 Label ok;
299 __ LoadRoot(t0, Heap::kStackLimitRootIndex); 299 __ LoadRoot(t0, Heap::kStackLimitRootIndex);
300 __ Branch(&ok, hs, sp, Operand(t0)); 300 __ Branch(&ok, hs, sp, Operand(t0));
301 __ Call(isolate()->builtins()->StackCheck(), RelocInfo::CODE_TARGET); 301 __ CallRuntime(Runtime::kStackCheck, 0);
302 __ bind(&ok); 302 __ bind(&ok);
303 } 303 }
304 304
305 { Comment cmnt(masm_, "[ Body"); 305 { Comment cmnt(masm_, "[ Body");
306 ASSERT(loop_depth() == 0); 306 ASSERT(loop_depth() == 0);
307 VisitStatements(function()->body()); 307 VisitStatements(function()->body());
308 ASSERT(loop_depth() == 0); 308 ASSERT(loop_depth() == 0);
309 } 309 }
310 } 310 }
311 311
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 } 409 }
410 EmitProfilingCounterDecrement(weight); 410 EmitProfilingCounterDecrement(weight);
411 Label ok; 411 Label ok;
412 __ Branch(&ok, ge, a3, Operand(zero_reg)); 412 __ Branch(&ok, ge, a3, Operand(zero_reg));
413 __ push(v0); 413 __ push(v0);
414 if (info_->ShouldSelfOptimize() && FLAG_direct_self_opt) { 414 if (info_->ShouldSelfOptimize() && FLAG_direct_self_opt) {
415 __ lw(a2, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 415 __ lw(a2, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
416 __ push(a2); 416 __ push(a2);
417 __ CallRuntime(Runtime::kOptimizeFunctionOnNextCall, 1); 417 __ CallRuntime(Runtime::kOptimizeFunctionOnNextCall, 1);
418 } else { 418 } else {
419 __ Call(isolate()->builtins()->InterruptCheck(), 419 __ CallRuntime(Runtime::kInterrupt, 0);
420 RelocInfo::CODE_TARGET);
421 } 420 }
422 __ pop(v0); 421 __ pop(v0);
423 EmitProfilingCounterReset(); 422 EmitProfilingCounterReset();
424 __ bind(&ok); 423 __ bind(&ok);
425 } 424 }
426 425
427 #ifdef DEBUG 426 #ifdef DEBUG
428 // Add a label for checking the size of the code used for returning. 427 // Add a label for checking the size of the code used for returning.
429 Label check_exit_codesize; 428 Label check_exit_codesize;
430 masm_->bind(&check_exit_codesize); 429 masm_->bind(&check_exit_codesize);
(...skipping 4485 matching lines...) Expand 10 before | Expand all | Expand 10 after
4916 *context_length = 0; 4915 *context_length = 0;
4917 return previous_; 4916 return previous_;
4918 } 4917 }
4919 4918
4920 4919
4921 #undef __ 4920 #undef __
4922 4921
4923 } } // namespace v8::internal 4922 } } // namespace v8::internal
4924 4923
4925 #endif // V8_TARGET_ARCH_MIPS 4924 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698