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

Side by Side Diff: src/compiler.cc

Issue 2861017: [Isolates] Make statics from BootstrapperActive to be instance members (Closed)
Patch Set: Created 10 years, 6 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/codegen.cc ('k') | src/contexts.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Compute top scope and allocate variables. For lazy compilation 71 // Compute top scope and allocate variables. For lazy compilation
72 // the top scope only contains the single lazily compiled function, 72 // the top scope only contains the single lazily compiled function,
73 // so this doesn't re-allocate variables repeatedly. 73 // so this doesn't re-allocate variables repeatedly.
74 HistogramTimerScope timer(&Counters::variable_allocation); 74 HistogramTimerScope timer(&Counters::variable_allocation);
75 Scope* top = info->scope(); 75 Scope* top = info->scope();
76 while (top->outer_scope() != NULL) top = top->outer_scope(); 76 while (top->outer_scope() != NULL) top = top->outer_scope();
77 top->AllocateVariables(context); 77 top->AllocateVariables(context);
78 } 78 }
79 79
80 #ifdef DEBUG 80 #ifdef DEBUG
81 if (Bootstrapper::IsActive() ? 81 if (Isolate::Current()->bootstrapper()->IsActive() ?
82 FLAG_print_builtin_scopes : 82 FLAG_print_builtin_scopes :
83 FLAG_print_scopes) { 83 FLAG_print_scopes) {
84 info->scope()->Print(); 84 info->scope()->Print();
85 } 85 }
86 #endif 86 #endif
87 87
88 // Optimize the AST. 88 // Optimize the AST.
89 if (!Rewriter::Optimize(function)) { 89 if (!Rewriter::Optimize(function)) {
90 // Signal a stack overflow by returning a null handle. The stack 90 // Signal a stack overflow by returning a null handle. The stack
91 // overflow exception will be thrown by the caller. 91 // overflow exception will be thrown by the caller.
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script), 637 PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script),
638 *code, *func_name)); 638 *code, *func_name));
639 OPROFILE(CreateNativeCodeRegion(*func_name, 639 OPROFILE(CreateNativeCodeRegion(*func_name,
640 code->instruction_start(), 640 code->instruction_start(),
641 code->instruction_size())); 641 code->instruction_size()));
642 } 642 }
643 } 643 }
644 } 644 }
645 645
646 } } // namespace v8::internal 646 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/contexts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698