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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 11498006: Revert 13157, 13145 and 13140: Crankshaft code stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/macro-assembler-ia32.h ('k') | src/ia32/stub-cache-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 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 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 1794
1795 void MacroAssembler::CallRuntime(Runtime::FunctionId id, int num_arguments) { 1795 void MacroAssembler::CallRuntime(Runtime::FunctionId id, int num_arguments) {
1796 CallRuntime(Runtime::FunctionForId(id), num_arguments); 1796 CallRuntime(Runtime::FunctionForId(id), num_arguments);
1797 } 1797 }
1798 1798
1799 1799
1800 void MacroAssembler::CallRuntimeSaveDoubles(Runtime::FunctionId id) { 1800 void MacroAssembler::CallRuntimeSaveDoubles(Runtime::FunctionId id) {
1801 const Runtime::Function* function = Runtime::FunctionForId(id); 1801 const Runtime::Function* function = Runtime::FunctionForId(id);
1802 Set(eax, Immediate(function->nargs)); 1802 Set(eax, Immediate(function->nargs));
1803 mov(ebx, Immediate(ExternalReference(function, isolate()))); 1803 mov(ebx, Immediate(ExternalReference(function, isolate())));
1804 CEntryStub ces(1, CpuFeatures::IsSupported(SSE2) ? kSaveFPRegs 1804 CEntryStub ces(1, kSaveFPRegs);
1805 : kDontSaveFPRegs);
1806 CallStub(&ces); 1805 CallStub(&ces);
1807 } 1806 }
1808 1807
1809 1808
1810 void MacroAssembler::CallRuntime(const Runtime::Function* f, 1809 void MacroAssembler::CallRuntime(const Runtime::Function* f,
1811 int num_arguments) { 1810 int num_arguments) {
1812 // If the expected number of arguments of the runtime function is 1811 // If the expected number of arguments of the runtime function is
1813 // constant, we check that the actual number of arguments match the 1812 // constant, we check that the actual number of arguments match the
1814 // expectation. 1813 // expectation.
1815 if (f->nargs >= 0 && f->nargs != num_arguments) { 1814 if (f->nargs >= 0 && f->nargs != num_arguments) {
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after
3001 j(not_equal, call_runtime); 3000 j(not_equal, call_runtime);
3002 3001
3003 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); 3002 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset));
3004 cmp(ecx, isolate()->factory()->null_value()); 3003 cmp(ecx, isolate()->factory()->null_value());
3005 j(not_equal, &next); 3004 j(not_equal, &next);
3006 } 3005 }
3007 3006
3008 } } // namespace v8::internal 3007 } } // namespace v8::internal
3009 3008
3010 #endif // V8_TARGET_ARCH_IA32 3009 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698