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

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

Issue 543207: Removing redundant stub for runtime native calls. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/debug-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after
2279 2279
2280 2280
2281 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { 2281 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) {
2282 #ifdef DEBUG 2282 #ifdef DEBUG
2283 int original_height = frame_->height(); 2283 int original_height = frame_->height();
2284 #endif 2284 #endif
2285 VirtualFrame::SpilledScope spilled_scope; 2285 VirtualFrame::SpilledScope spilled_scope;
2286 Comment cmnt(masm_, "[ DebuggerStatament"); 2286 Comment cmnt(masm_, "[ DebuggerStatament");
2287 CodeForStatementPosition(node); 2287 CodeForStatementPosition(node);
2288 #ifdef ENABLE_DEBUGGER_SUPPORT 2288 #ifdef ENABLE_DEBUGGER_SUPPORT
2289 frame_->CallRuntime(Runtime::kDebugBreak, 0); 2289 DebugerStatementStub ces;
2290 frame_->CallStub(&ces, 0);
2290 #endif 2291 #endif
2291 // Ignore the return value. 2292 // Ignore the return value.
2292 ASSERT(frame_->height() == original_height); 2293 ASSERT(frame_->height() == original_height);
2293 } 2294 }
2294 2295
2295 2296
2296 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { 2297 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) {
2297 VirtualFrame::SpilledScope spilled_scope; 2298 VirtualFrame::SpilledScope spilled_scope;
2298 ASSERT(boilerplate->IsBoilerplate()); 2299 ASSERT(boilerplate->IsBoilerplate());
2299 2300
(...skipping 4641 matching lines...) Expand 10 before | Expand all | Expand 10 after
6941 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) 6942 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater)
6942 // tagged as a small integer. 6943 // tagged as a small integer.
6943 __ bind(&runtime); 6944 __ bind(&runtime);
6944 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); 6945 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1);
6945 } 6946 }
6946 6947
6947 6948
6948 #undef __ 6949 #undef __
6949 6950
6950 } } // namespace v8::internal 6951 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/debug-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698