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

Side by Side Diff: src/arm/stub-cache-arm.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/arm/macro-assembler-arm.cc ('k') | src/array.js » ('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 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 MaybeObject* CallStubCompiler::CompileCallConstant(Object* object, 2110 MaybeObject* CallStubCompiler::CompileCallConstant(Object* object,
2111 JSObject* holder, 2111 JSObject* holder,
2112 JSFunction* function, 2112 JSFunction* function,
2113 String* name, 2113 String* name,
2114 CheckType check) { 2114 CheckType check) {
2115 // ----------- S t a t e ------------- 2115 // ----------- S t a t e -------------
2116 // -- r2 : name 2116 // -- r2 : name
2117 // -- lr : return address 2117 // -- lr : return address
2118 // ----------------------------------- 2118 // -----------------------------------
2119 SharedFunctionInfo* function_info = function->shared(); 2119 SharedFunctionInfo* function_info = function->shared();
2120 if (function_info->HasCustomCallGenerator()) { 2120 if (function_info->HasBuiltinFunctionId()) {
2121 const int id = function_info->custom_call_generator_id(); 2121 BuiltinFunctionId id = function_info->builtin_function_id();
2122 MaybeObject* maybe_result = CompileCustomCall( 2122 MaybeObject* maybe_result = CompileCustomCall(
2123 id, object, holder, NULL, function, name); 2123 id, object, holder, NULL, function, name);
2124 Object* result; 2124 Object* result;
2125 if (!maybe_result->ToObject(&result)) return maybe_result; 2125 if (!maybe_result->ToObject(&result)) return maybe_result;
2126 // undefined means bail out to regular compiler. 2126 // undefined means bail out to regular compiler.
2127 if (!result->IsUndefined()) { 2127 if (!result->IsUndefined()) {
2128 return result; 2128 return result;
2129 } 2129 }
2130 } 2130 }
2131 2131
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2321 GlobalObject* holder, 2321 GlobalObject* holder,
2322 JSGlobalPropertyCell* cell, 2322 JSGlobalPropertyCell* cell,
2323 JSFunction* function, 2323 JSFunction* function,
2324 String* name) { 2324 String* name) {
2325 // ----------- S t a t e ------------- 2325 // ----------- S t a t e -------------
2326 // -- r2 : name 2326 // -- r2 : name
2327 // -- lr : return address 2327 // -- lr : return address
2328 // ----------------------------------- 2328 // -----------------------------------
2329 2329
2330 SharedFunctionInfo* function_info = function->shared(); 2330 SharedFunctionInfo* function_info = function->shared();
2331 if (function_info->HasCustomCallGenerator()) { 2331 if (function_info->HasBuiltinFunctionId()) {
2332 const int id = function_info->custom_call_generator_id(); 2332 BuiltinFunctionId id = function_info->builtin_function_id();
2333 MaybeObject* maybe_result = CompileCustomCall( 2333 MaybeObject* maybe_result = CompileCustomCall(
2334 id, object, holder, cell, function, name); 2334 id, object, holder, cell, function, name);
2335 Object* result; 2335 Object* result;
2336 if (!maybe_result->ToObject(&result)) return maybe_result; 2336 if (!maybe_result->ToObject(&result)) return maybe_result;
2337 // undefined means bail out to regular compiler. 2337 // undefined means bail out to regular compiler.
2338 if (!result->IsUndefined()) return result; 2338 if (!result->IsUndefined()) return result;
2339 } 2339 }
2340 2340
2341 Label miss; 2341 Label miss;
2342 2342
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
3212 // Return the generated code. 3212 // Return the generated code.
3213 return GetCode(); 3213 return GetCode();
3214 } 3214 }
3215 3215
3216 3216
3217 #undef __ 3217 #undef __
3218 3218
3219 } } // namespace v8::internal 3219 } } // namespace v8::internal
3220 3220
3221 #endif // V8_TARGET_ARCH_ARM 3221 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698