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

Side by Side Diff: src/ia32/codegen-ia32.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 | « src/heap.cc ('k') | src/ia32/debug-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 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 3883 matching lines...) Expand 10 before | Expand all | Expand 10 after
3894 } 3894 }
3895 3895
3896 3896
3897 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) { 3897 void CodeGenerator::VisitDebuggerStatement(DebuggerStatement* node) {
3898 ASSERT(!in_spilled_code()); 3898 ASSERT(!in_spilled_code());
3899 Comment cmnt(masm_, "[ DebuggerStatement"); 3899 Comment cmnt(masm_, "[ DebuggerStatement");
3900 CodeForStatementPosition(node); 3900 CodeForStatementPosition(node);
3901 #ifdef ENABLE_DEBUGGER_SUPPORT 3901 #ifdef ENABLE_DEBUGGER_SUPPORT
3902 // Spill everything, even constants, to the frame. 3902 // Spill everything, even constants, to the frame.
3903 frame_->SpillAll(); 3903 frame_->SpillAll();
3904 frame_->CallRuntime(Runtime::kDebugBreak, 0); 3904
3905 DebugerStatementStub ces;
3906 frame_->CallStub(&ces, 0);
3905 // Ignore the return value. 3907 // Ignore the return value.
3906 #endif 3908 #endif
3907 } 3909 }
3908 3910
3909 3911
3910 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) { 3912 void CodeGenerator::InstantiateBoilerplate(Handle<JSFunction> boilerplate) {
3911 ASSERT(boilerplate->IsBoilerplate()); 3913 ASSERT(boilerplate->IsBoilerplate());
3912 3914
3913 // The inevitable call will sync frame elements to memory anyway, so 3915 // The inevitable call will sync frame elements to memory anyway, so
3914 // we do it eagerly to allow us to push the arguments directly into 3916 // we do it eagerly to allow us to push the arguments directly into
(...skipping 6188 matching lines...) Expand 10 before | Expand all | Expand 10 after
10103 10105
10104 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) 10106 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater)
10105 // tagged as a small integer. 10107 // tagged as a small integer.
10106 __ bind(&runtime); 10108 __ bind(&runtime);
10107 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); 10109 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1);
10108 } 10110 }
10109 10111
10110 #undef __ 10112 #undef __
10111 10113
10112 } } // namespace v8::internal 10114 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/debug-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698