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

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

Issue 6062002: Merge 6006:6095 from bleeding_edge to experimental/gc branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 10 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.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 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
2137 CheckType check) { 2137 CheckType check) {
2138 // ----------- S t a t e ------------- 2138 // ----------- S t a t e -------------
2139 // -- ecx : name 2139 // -- ecx : name
2140 // -- esp[0] : return address 2140 // -- esp[0] : return address
2141 // -- esp[(argc - n) * 4] : arg[n] (zero-based) 2141 // -- esp[(argc - n) * 4] : arg[n] (zero-based)
2142 // -- ... 2142 // -- ...
2143 // -- esp[(argc + 1) * 4] : receiver 2143 // -- esp[(argc + 1) * 4] : receiver
2144 // ----------------------------------- 2144 // -----------------------------------
2145 2145
2146 SharedFunctionInfo* function_info = function->shared(); 2146 SharedFunctionInfo* function_info = function->shared();
2147 if (function_info->HasCustomCallGenerator()) { 2147 if (function_info->HasBuiltinFunctionId()) {
2148 const int id = function_info->custom_call_generator_id(); 2148 BuiltinFunctionId id = function_info->builtin_function_id();
2149 MaybeObject* maybe_result = CompileCustomCall( 2149 MaybeObject* maybe_result = CompileCustomCall(
2150 id, object, holder, NULL, function, name); 2150 id, object, holder, NULL, function, name);
2151 Object* result; 2151 Object* result;
2152 if (!maybe_result->ToObject(&result)) return maybe_result; 2152 if (!maybe_result->ToObject(&result)) return maybe_result;
2153 // undefined means bail out to regular compiler. 2153 // undefined means bail out to regular compiler.
2154 if (!result->IsUndefined()) return result; 2154 if (!result->IsUndefined()) return result;
2155 } 2155 }
2156 2156
2157 Label miss_in_smi_check; 2157 Label miss_in_smi_check;
2158 2158
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
2379 String* name) { 2379 String* name) {
2380 // ----------- S t a t e ------------- 2380 // ----------- S t a t e -------------
2381 // -- ecx : name 2381 // -- ecx : name
2382 // -- esp[0] : return address 2382 // -- esp[0] : return address
2383 // -- esp[(argc - n) * 4] : arg[n] (zero-based) 2383 // -- esp[(argc - n) * 4] : arg[n] (zero-based)
2384 // -- ... 2384 // -- ...
2385 // -- esp[(argc + 1) * 4] : receiver 2385 // -- esp[(argc + 1) * 4] : receiver
2386 // ----------------------------------- 2386 // -----------------------------------
2387 2387
2388 SharedFunctionInfo* function_info = function->shared(); 2388 SharedFunctionInfo* function_info = function->shared();
2389 if (function_info->HasCustomCallGenerator()) { 2389 if (function_info->HasBuiltinFunctionId()) {
2390 const int id = function_info->custom_call_generator_id(); 2390 BuiltinFunctionId id = function_info->builtin_function_id();
2391 MaybeObject* maybe_result = CompileCustomCall( 2391 MaybeObject* maybe_result = CompileCustomCall(
2392 id, object, holder, cell, function, name); 2392 id, object, holder, cell, function, name);
2393 Object* result; 2393 Object* result;
2394 if (!maybe_result->ToObject(&result)) return maybe_result; 2394 if (!maybe_result->ToObject(&result)) return maybe_result;
2395 // undefined means bail out to regular compiler. 2395 // undefined means bail out to regular compiler.
2396 if (!result->IsUndefined()) return result; 2396 if (!result->IsUndefined()) return result;
2397 } 2397 }
2398 2398
2399 Label miss; 2399 Label miss;
2400 2400
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
3295 // Return the generated code. 3295 // Return the generated code.
3296 return GetCode(); 3296 return GetCode();
3297 } 3297 }
3298 3298
3299 3299
3300 #undef __ 3300 #undef __
3301 3301
3302 } } // namespace v8::internal 3302 } } // namespace v8::internal
3303 3303
3304 #endif // V8_TARGET_ARCH_IA32 3304 #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