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

Side by Side Diff: src/bootstrapper.cc

Issue 8345038: Handlify the runtime lookup of CallIC and KeyedCallIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after
2000 Factory* factory = builtins->GetIsolate()->factory(); 2000 Factory* factory = builtins->GetIsolate()->factory();
2001 for (int i = 0; i < Builtins::NumberOfJavaScriptBuiltins(); i++) { 2001 for (int i = 0; i < Builtins::NumberOfJavaScriptBuiltins(); i++) {
2002 Builtins::JavaScript id = static_cast<Builtins::JavaScript>(i); 2002 Builtins::JavaScript id = static_cast<Builtins::JavaScript>(i);
2003 Handle<String> name = factory->LookupAsciiSymbol(Builtins::GetName(id)); 2003 Handle<String> name = factory->LookupAsciiSymbol(Builtins::GetName(id));
2004 Object* function_object = builtins->GetPropertyNoExceptionThrown(*name); 2004 Object* function_object = builtins->GetPropertyNoExceptionThrown(*name);
2005 Handle<JSFunction> function 2005 Handle<JSFunction> function
2006 = Handle<JSFunction>(JSFunction::cast(function_object)); 2006 = Handle<JSFunction>(JSFunction::cast(function_object));
2007 builtins->set_javascript_builtin(id, *function); 2007 builtins->set_javascript_builtin(id, *function);
2008 Handle<SharedFunctionInfo> shared 2008 Handle<SharedFunctionInfo> shared
2009 = Handle<SharedFunctionInfo>(function->shared()); 2009 = Handle<SharedFunctionInfo>(function->shared());
2010 if (!EnsureCompiled(shared, CLEAR_EXCEPTION)) return false; 2010 if (!SharedFunctionInfo::EnsureCompiled(shared, CLEAR_EXCEPTION)) {
2011 return false;
2012 }
2011 // Set the code object on the function object. 2013 // Set the code object on the function object.
2012 function->ReplaceCode(function->shared()->code()); 2014 function->ReplaceCode(function->shared()->code());
2013 builtins->set_javascript_builtin_code(id, shared->code()); 2015 builtins->set_javascript_builtin_code(id, shared->code());
2014 } 2016 }
2015 return true; 2017 return true;
2016 } 2018 }
2017 2019
2018 2020
2019 bool Genesis::ConfigureGlobalObjects( 2021 bool Genesis::ConfigureGlobalObjects(
2020 v8::Handle<v8::ObjectTemplate> global_proxy_template) { 2022 v8::Handle<v8::ObjectTemplate> global_proxy_template) {
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
2265 return from + sizeof(NestingCounterType); 2267 return from + sizeof(NestingCounterType);
2266 } 2268 }
2267 2269
2268 2270
2269 // Called when the top-level V8 mutex is destroyed. 2271 // Called when the top-level V8 mutex is destroyed.
2270 void Bootstrapper::FreeThreadResources() { 2272 void Bootstrapper::FreeThreadResources() {
2271 ASSERT(!IsActive()); 2273 ASSERT(!IsActive());
2272 } 2274 }
2273 2275
2274 } } // namespace v8::internal 2276 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698