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

Side by Side Diff: src/bootstrapper.cc

Issue 1140004: MIPS simple function calls... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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 | « no previous file | src/flag-definitions.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 Handle<JSFunction> opaque_reference_fun = 1107 Handle<JSFunction> opaque_reference_fun =
1108 InstallFunction(builtins, "OpaqueReference", JS_VALUE_TYPE, 1108 InstallFunction(builtins, "OpaqueReference", JS_VALUE_TYPE,
1109 JSValue::kSize, Top::initial_object_prototype(), 1109 JSValue::kSize, Top::initial_object_prototype(),
1110 Builtins::Illegal, false); 1110 Builtins::Illegal, false);
1111 Handle<JSObject> prototype = 1111 Handle<JSObject> prototype =
1112 Factory::NewJSObject(Top::object_function(), TENURED); 1112 Factory::NewJSObject(Top::object_function(), TENURED);
1113 SetPrototype(opaque_reference_fun, prototype); 1113 SetPrototype(opaque_reference_fun, prototype);
1114 global_context()->set_opaque_reference_function(*opaque_reference_fun); 1114 global_context()->set_opaque_reference_function(*opaque_reference_fun);
1115 } 1115 }
1116 1116
1117 if (FLAG_disable_native_files) {
1118 PrintF("Warning: Running without installed natives!\n");
1119 return true;
1120 }
1121
1117 // Install natives. 1122 // Install natives.
1118 for (int i = Natives::GetDebuggerCount(); 1123 for (int i = Natives::GetDebuggerCount();
1119 i < Natives::GetBuiltinsCount(); 1124 i < Natives::GetBuiltinsCount();
1120 i++) { 1125 i++) {
1121 Vector<const char> name = Natives::GetScriptName(i); 1126 Vector<const char> name = Natives::GetScriptName(i);
1122 if (!CompileBuiltin(i)) return false; 1127 if (!CompileBuiltin(i)) return false;
1123 // TODO(ager): We really only need to install the JS builtin 1128 // TODO(ager): We really only need to install the JS builtin
1124 // functions on the builtins object after compiling and running 1129 // functions on the builtins object after compiling and running
1125 // runtime.js. 1130 // runtime.js.
1126 if (!InstallJSBuiltins(builtins)) return false; 1131 if (!InstallJSBuiltins(builtins)) return false;
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1583 } 1588 }
1584 1589
1585 1590
1586 // Restore statics that are thread local. 1591 // Restore statics that are thread local.
1587 char* BootstrapperActive::RestoreState(char* from) { 1592 char* BootstrapperActive::RestoreState(char* from) {
1588 nesting_ = *reinterpret_cast<int*>(from); 1593 nesting_ = *reinterpret_cast<int*>(from);
1589 return from + sizeof(nesting_); 1594 return from + sizeof(nesting_);
1590 } 1595 }
1591 1596
1592 } } // namespace v8::internal 1597 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698