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

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

Issue 10701054: Enable stub generation using Hydrogen/Lithium (again) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback 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
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, kSaveFPRegs); 1804 CEntryStub ces(1, CpuFeatures::IsSupported(SSE2)
Jakob Kummerow 2012/11/28 16:28:22 nit: indentation / line break. CEntryStub ces(1,
danno 2012/11/30 16:23:24 Done.
1805 ? kSaveFPRegs :
1806 kDontSaveFPRegs);
1805 CallStub(&ces); 1807 CallStub(&ces);
1806 } 1808 }
1807 1809
1808 1810
1809 void MacroAssembler::CallRuntime(const Runtime::Function* f, 1811 void MacroAssembler::CallRuntime(const Runtime::Function* f,
1810 int num_arguments) { 1812 int num_arguments) {
1811 // If the expected number of arguments of the runtime function is 1813 // If the expected number of arguments of the runtime function is
1812 // constant, we check that the actual number of arguments match the 1814 // constant, we check that the actual number of arguments match the
1813 // expectation. 1815 // expectation.
1814 if (f->nargs >= 0 && f->nargs != num_arguments) { 1816 if (f->nargs >= 0 && f->nargs != num_arguments) {
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2984 j(not_equal, call_runtime); 2986 j(not_equal, call_runtime);
2985 2987
2986 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); 2988 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset));
2987 cmp(ecx, isolate()->factory()->null_value()); 2989 cmp(ecx, isolate()->factory()->null_value());
2988 j(not_equal, &next); 2990 j(not_equal, &next);
2989 } 2991 }
2990 2992
2991 } } // namespace v8::internal 2993 } } // namespace v8::internal
2992 2994
2993 #endif // V8_TARGET_ARCH_IA32 2995 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698