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

Side by Side Diff: src/bootstrapper.cc

Issue 1935: New static flags system (Closed)
Patch Set: Merge, again. Created 12 years, 3 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
« no previous file with comments | « src/assembler-ia32.cc ('k') | src/builtins.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 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 21 matching lines...) Expand all
32 #include "bootstrapper.h" 32 #include "bootstrapper.h"
33 #include "compiler.h" 33 #include "compiler.h"
34 #include "debug.h" 34 #include "debug.h"
35 #include "execution.h" 35 #include "execution.h"
36 #include "global-handles.h" 36 #include "global-handles.h"
37 #include "macro-assembler.h" 37 #include "macro-assembler.h"
38 #include "natives.h" 38 #include "natives.h"
39 39
40 namespace v8 { namespace internal { 40 namespace v8 { namespace internal {
41 41
42 DEFINE_string(expose_natives_as, NULL, "expose natives in global object");
43 DEFINE_string(expose_debug_as, NULL, "expose debug in global object");
44 DEFINE_string(natives_file, NULL, "alternative natives file"); // for debugging
45 DEFINE_bool(expose_gc, false, "expose gc extension"); // for debugging
46
47 // A SourceCodeCache uses a FixedArray to store pairs of 42 // A SourceCodeCache uses a FixedArray to store pairs of
48 // (AsciiString*, JSFunction*), mapping names of native code files 43 // (AsciiString*, JSFunction*), mapping names of native code files
49 // (runtime.js, etc.) to precompiled functions. Instead of mapping 44 // (runtime.js, etc.) to precompiled functions. Instead of mapping
50 // names to functions it might make sense to let the JS2C tool 45 // names to functions it might make sense to let the JS2C tool
51 // generate an index for each native JS file. 46 // generate an index for each native JS file.
52 class SourceCodeCache BASE_EMBEDDED { 47 class SourceCodeCache BASE_EMBEDDED {
53 public: 48 public:
54 explicit SourceCodeCache(ScriptType type): type_(type) { } 49 explicit SourceCodeCache(ScriptType type): type_(type) { }
55 50
56 void Initialize(bool create_heap_objects) { 51 void Initialize(bool create_heap_objects) {
(...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 if (!ConfigureGlobalObject(global_template)) return; 1331 if (!ConfigureGlobalObject(global_template)) return;
1337 1332
1338 if (!InstallExtensions(extensions)) return; 1333 if (!InstallExtensions(extensions)) return;
1339 1334
1340 if (!InstallSpecialObjects()) return; 1335 if (!InstallSpecialObjects()) return;
1341 1336
1342 result_ = global_context_; 1337 result_ = global_context_;
1343 } 1338 }
1344 1339
1345 } } // namespace v8::internal 1340 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/assembler-ia32.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698