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

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

Issue 553117: Implementing inline caches for binary operations (ia32).... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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/code-stubs.h » ('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 13 matching lines...) Expand all
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #include "v8.h" 28 #include "v8.h"
29 29
30 #include "bootstrapper.h" 30 #include "bootstrapper.h"
31 #include "codegen-inl.h" 31 #include "codegen-inl.h"
32 #include "compiler.h" 32 #include "compiler.h"
33 #include "debug.h" 33 #include "debug.h"
34 #include "ic-inl.h"
34 #include "parser.h" 35 #include "parser.h"
35 #include "register-allocator-inl.h" 36 #include "register-allocator-inl.h"
36 #include "runtime.h" 37 #include "runtime.h"
37 #include "scopes.h" 38 #include "scopes.h"
38 #include "virtual-frame-inl.h" 39 #include "virtual-frame-inl.h"
39 40
40 namespace v8 { 41 namespace v8 {
41 namespace internal { 42 namespace internal {
42 43
43 #define __ ACCESS_MASM(masm_) 44 #define __ ACCESS_MASM(masm_)
(...skipping 6184 matching lines...) Expand 10 before | Expand all | Expand 10 after
6228 break; 6229 break;
6229 } 6230 }
6230 6231
6231 default: UNREACHABLE(); 6232 default: UNREACHABLE();
6232 } 6233 }
6233 // This code should be unreachable. 6234 // This code should be unreachable.
6234 __ stop("Unreachable"); 6235 __ stop("Unreachable");
6235 } 6236 }
6236 6237
6237 6238
6239 Handle<Code> GetBinaryOpStub(int key, BinaryOpIC::TypeInfo type_info) {
6240 return Handle<Code>::null();
6241 }
6242
6243
6238 void StackCheckStub::Generate(MacroAssembler* masm) { 6244 void StackCheckStub::Generate(MacroAssembler* masm) {
6239 // Do tail-call to runtime routine. Runtime routines expect at least one 6245 // Do tail-call to runtime routine. Runtime routines expect at least one
6240 // argument, so give it a Smi. 6246 // argument, so give it a Smi.
6241 __ mov(r0, Operand(Smi::FromInt(0))); 6247 __ mov(r0, Operand(Smi::FromInt(0)));
6242 __ push(r0); 6248 __ push(r0);
6243 __ TailCallRuntime(Runtime::kStackGuard, 1, 1); 6249 __ TailCallRuntime(Runtime::kStackGuard, 1, 1);
6244 6250
6245 __ StubReturn(1); 6251 __ StubReturn(1);
6246 } 6252 }
6247 6253
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
7701 7707
7702 // Just jump to runtime to add the two strings. 7708 // Just jump to runtime to add the two strings.
7703 __ bind(&string_add_runtime); 7709 __ bind(&string_add_runtime);
7704 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); 7710 __ TailCallRuntime(Runtime::kStringAdd, 2, 1);
7705 } 7711 }
7706 7712
7707 7713
7708 #undef __ 7714 #undef __
7709 7715
7710 } } // namespace v8::internal 7716 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698