| OLD | NEW |
| 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 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2116 MaybeObject* CallStubCompiler::CompileCallConstant(Object* object, | 2116 MaybeObject* CallStubCompiler::CompileCallConstant(Object* object, |
| 2117 JSObject* holder, | 2117 JSObject* holder, |
| 2118 JSFunction* function, | 2118 JSFunction* function, |
| 2119 String* name, | 2119 String* name, |
| 2120 CheckType check) { | 2120 CheckType check) { |
| 2121 // ----------- S t a t e ------------- | 2121 // ----------- S t a t e ------------- |
| 2122 // -- r2 : name | 2122 // -- r2 : name |
| 2123 // -- lr : return address | 2123 // -- lr : return address |
| 2124 // ----------------------------------- | 2124 // ----------------------------------- |
| 2125 SharedFunctionInfo* function_info = function->shared(); | 2125 SharedFunctionInfo* function_info = function->shared(); |
| 2126 if (function_info->HasCustomCallGenerator()) { | 2126 if (function_info->HasBuiltinFunctionId()) { |
| 2127 const int id = function_info->custom_call_generator_id(); | 2127 BuiltinFunctionId id = function_info->builtin_function_id(); |
| 2128 MaybeObject* maybe_result = CompileCustomCall( | 2128 MaybeObject* maybe_result = CompileCustomCall( |
| 2129 id, object, holder, NULL, function, name); | 2129 id, object, holder, NULL, function, name); |
| 2130 Object* result; | 2130 Object* result; |
| 2131 if (!maybe_result->ToObject(&result)) return maybe_result; | 2131 if (!maybe_result->ToObject(&result)) return maybe_result; |
| 2132 // undefined means bail out to regular compiler. | 2132 // undefined means bail out to regular compiler. |
| 2133 if (!result->IsUndefined()) { | 2133 if (!result->IsUndefined()) { |
| 2134 return result; | 2134 return result; |
| 2135 } | 2135 } |
| 2136 } | 2136 } |
| 2137 | 2137 |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2327 GlobalObject* holder, | 2327 GlobalObject* holder, |
| 2328 JSGlobalPropertyCell* cell, | 2328 JSGlobalPropertyCell* cell, |
| 2329 JSFunction* function, | 2329 JSFunction* function, |
| 2330 String* name) { | 2330 String* name) { |
| 2331 // ----------- S t a t e ------------- | 2331 // ----------- S t a t e ------------- |
| 2332 // -- r2 : name | 2332 // -- r2 : name |
| 2333 // -- lr : return address | 2333 // -- lr : return address |
| 2334 // ----------------------------------- | 2334 // ----------------------------------- |
| 2335 | 2335 |
| 2336 SharedFunctionInfo* function_info = function->shared(); | 2336 SharedFunctionInfo* function_info = function->shared(); |
| 2337 if (function_info->HasCustomCallGenerator()) { | 2337 if (function_info->HasBuiltinFunctionId()) { |
| 2338 const int id = function_info->custom_call_generator_id(); | 2338 BuiltinFunctionId id = function_info->builtin_function_id(); |
| 2339 MaybeObject* maybe_result = CompileCustomCall( | 2339 MaybeObject* maybe_result = CompileCustomCall( |
| 2340 id, object, holder, cell, function, name); | 2340 id, object, holder, cell, function, name); |
| 2341 Object* result; | 2341 Object* result; |
| 2342 if (!maybe_result->ToObject(&result)) return maybe_result; | 2342 if (!maybe_result->ToObject(&result)) return maybe_result; |
| 2343 // undefined means bail out to regular compiler. | 2343 // undefined means bail out to regular compiler. |
| 2344 if (!result->IsUndefined()) return result; | 2344 if (!result->IsUndefined()) return result; |
| 2345 } | 2345 } |
| 2346 | 2346 |
| 2347 Label miss; | 2347 Label miss; |
| 2348 | 2348 |
| (...skipping 864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3213 // Return the generated code. | 3213 // Return the generated code. |
| 3214 return GetCode(); | 3214 return GetCode(); |
| 3215 } | 3215 } |
| 3216 | 3216 |
| 3217 | 3217 |
| 3218 #undef __ | 3218 #undef __ |
| 3219 | 3219 |
| 3220 } } // namespace v8::internal | 3220 } } // namespace v8::internal |
| 3221 | 3221 |
| 3222 #endif // V8_TARGET_ARCH_ARM | 3222 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |