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

Side by Side Diff: src/bootstrapper.cc

Issue 7631020: Version 3.5.6. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 4 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/ast.h ('k') | src/compiler.cc » ('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 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 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 } 1191 }
1192 1192
1193 1193
1194 void Genesis::InitializeExperimentalGlobal() { 1194 void Genesis::InitializeExperimentalGlobal() {
1195 Isolate* isolate = this->isolate(); 1195 Isolate* isolate = this->isolate();
1196 Handle<JSObject> global = Handle<JSObject>(global_context()->global()); 1196 Handle<JSObject> global = Handle<JSObject>(global_context()->global());
1197 1197
1198 // TODO(mstarzinger): Move this into Genesis::InitializeGlobal once we no 1198 // TODO(mstarzinger): Move this into Genesis::InitializeGlobal once we no
1199 // longer need to live behind a flag, so WeakMap gets added to the snapshot. 1199 // longer need to live behind a flag, so WeakMap gets added to the snapshot.
1200 if (FLAG_harmony_weakmaps) { // -- W e a k M a p 1200 if (FLAG_harmony_weakmaps) { // -- W e a k M a p
1201 Handle<JSFunction> weakmap_fun = 1201 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize,
1202 InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE, JSWeakMap::kSize, 1202 isolate->initial_object_prototype(),
1203 isolate->initial_object_prototype(), 1203 Builtins::kIllegal, true);
1204 Builtins::kIllegal, true);
1205 } 1204 }
1206 } 1205 }
1207 1206
1208 1207
1209 bool Genesis::CompileBuiltin(Isolate* isolate, int index) { 1208 bool Genesis::CompileBuiltin(Isolate* isolate, int index) {
1210 Vector<const char> name = Natives::GetScriptName(index); 1209 Vector<const char> name = Natives::GetScriptName(index);
1211 Handle<String> source_code = 1210 Handle<String> source_code =
1212 isolate->bootstrapper()->NativesSourceLookup(index); 1211 isolate->bootstrapper()->NativesSourceLookup(index);
1213 return CompileNative(name, source_code); 1212 return CompileNative(name, source_code);
1214 } 1213 }
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
2220 return from + sizeof(NestingCounterType); 2219 return from + sizeof(NestingCounterType);
2221 } 2220 }
2222 2221
2223 2222
2224 // Called when the top-level V8 mutex is destroyed. 2223 // Called when the top-level V8 mutex is destroyed.
2225 void Bootstrapper::FreeThreadResources() { 2224 void Bootstrapper::FreeThreadResources() {
2226 ASSERT(!IsActive()); 2225 ASSERT(!IsActive());
2227 } 2226 }
2228 2227
2229 } } // namespace v8::internal 2228 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698