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

Side by Side Diff: src/ia32/stub-cache-ia32.cc

Issue 6580038: [Isolates] Merge from bleeding_edge, revisions 5934-6100. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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/ia32/macro-assembler-ia32.cc ('k') | src/ic.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 2119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2130 CheckType check) { 2130 CheckType check) {
2131 // ----------- S t a t e ------------- 2131 // ----------- S t a t e -------------
2132 // -- ecx : name 2132 // -- ecx : name
2133 // -- esp[0] : return address 2133 // -- esp[0] : return address
2134 // -- esp[(argc - n) * 4] : arg[n] (zero-based) 2134 // -- esp[(argc - n) * 4] : arg[n] (zero-based)
2135 // -- ... 2135 // -- ...
2136 // -- esp[(argc + 1) * 4] : receiver 2136 // -- esp[(argc + 1) * 4] : receiver
2137 // ----------------------------------- 2137 // -----------------------------------
2138 2138
2139 SharedFunctionInfo* function_info = function->shared(); 2139 SharedFunctionInfo* function_info = function->shared();
2140 if (function_info->HasCustomCallGenerator()) { 2140 if (function_info->HasBuiltinFunctionId()) {
2141 const int id = function_info->custom_call_generator_id(); 2141 BuiltinFunctionId id = function_info->builtin_function_id();
2142 MaybeObject* maybe_result = CompileCustomCall( 2142 MaybeObject* maybe_result = CompileCustomCall(
2143 id, object, holder, NULL, function, name); 2143 id, object, holder, NULL, function, name);
2144 Object* result; 2144 Object* result;
2145 if (!maybe_result->ToObject(&result)) return maybe_result; 2145 if (!maybe_result->ToObject(&result)) return maybe_result;
2146 // undefined means bail out to regular compiler. 2146 // undefined means bail out to regular compiler.
2147 if (!result->IsUndefined()) return result; 2147 if (!result->IsUndefined()) return result;
2148 } 2148 }
2149 2149
2150 Label miss_in_smi_check; 2150 Label miss_in_smi_check;
2151 2151
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2372 String* name) { 2372 String* name) {
2373 // ----------- S t a t e ------------- 2373 // ----------- S t a t e -------------
2374 // -- ecx : name 2374 // -- ecx : name
2375 // -- esp[0] : return address 2375 // -- esp[0] : return address
2376 // -- esp[(argc - n) * 4] : arg[n] (zero-based) 2376 // -- esp[(argc - n) * 4] : arg[n] (zero-based)
2377 // -- ... 2377 // -- ...
2378 // -- esp[(argc + 1) * 4] : receiver 2378 // -- esp[(argc + 1) * 4] : receiver
2379 // ----------------------------------- 2379 // -----------------------------------
2380 2380
2381 SharedFunctionInfo* function_info = function->shared(); 2381 SharedFunctionInfo* function_info = function->shared();
2382 if (function_info->HasCustomCallGenerator()) { 2382 if (function_info->HasBuiltinFunctionId()) {
2383 const int id = function_info->custom_call_generator_id(); 2383 BuiltinFunctionId id = function_info->builtin_function_id();
2384 MaybeObject* maybe_result = CompileCustomCall( 2384 MaybeObject* maybe_result = CompileCustomCall(
2385 id, object, holder, cell, function, name); 2385 id, object, holder, cell, function, name);
2386 Object* result; 2386 Object* result;
2387 if (!maybe_result->ToObject(&result)) return maybe_result; 2387 if (!maybe_result->ToObject(&result)) return maybe_result;
2388 // undefined means bail out to regular compiler. 2388 // undefined means bail out to regular compiler.
2389 if (!result->IsUndefined()) return result; 2389 if (!result->IsUndefined()) return result;
2390 } 2390 }
2391 2391
2392 Label miss; 2392 Label miss;
2393 2393
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
3293 // Return the generated code. 3293 // Return the generated code.
3294 return GetCode(); 3294 return GetCode();
3295 } 3295 }
3296 3296
3297 3297
3298 #undef __ 3298 #undef __
3299 3299
3300 } } // namespace v8::internal 3300 } } // namespace v8::internal
3301 3301
3302 #endif // V8_TARGET_ARCH_IA32 3302 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698