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

Side by Side Diff: src/compiler.h

Issue 435003: Patch for allowing several V8 instances in process:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/compilation-cache.cc ('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 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 Handle<Script> script, 79 Handle<Script> script,
80 AstVisitor* caller); 80 AstVisitor* caller);
81 81
82 // Set the function info for a newly compiled function. 82 // Set the function info for a newly compiled function.
83 static void SetFunctionInfo(Handle<JSFunction> fun, 83 static void SetFunctionInfo(Handle<JSFunction> fun,
84 FunctionLiteral* lit, 84 FunctionLiteral* lit,
85 bool is_toplevel, 85 bool is_toplevel,
86 Handle<Script> script); 86 Handle<Script> script);
87 }; 87 };
88 88
89 class CompilerData {
90 StaticResource<SafeStringInputBuffer> safe_string_input_buffer_;
91
92 friend class V8Context;
93 friend class Compiler;
94 CompilerData();
95 DISALLOW_COPY_AND_ASSIGN(CompilerData);
96 };
89 97
90 // During compilation we need a global list of handles to constants 98 // During compilation we need a global list of handles to constants
91 // for frame elements. When the zone gets deleted, we make sure to 99 // for frame elements. When the zone gets deleted, we make sure to
92 // clear this list of handles as well. 100 // clear this list of handles as well.
93 class CompilationZoneScope : public ZoneScope { 101 class CompilationZoneScope : public ZoneScope {
94 public: 102 public:
95 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { } 103 explicit CompilationZoneScope(ZoneScopeMode mode) : ZoneScope(mode) { }
96 virtual ~CompilationZoneScope() { 104 virtual ~CompilationZoneScope() {
97 if (ShouldDeleteOnExit()) { 105 if (ShouldDeleteOnExit()) {
98 FrameElement::ClearConstantList(); 106 FrameElement::ClearConstantList();
99 Result::ClearConstantList(); 107 Result::ClearConstantList();
100 } 108 }
101 } 109 }
102 }; 110 };
103 111
104 112
105 } } // namespace v8::internal 113 } } // namespace v8::internal
106 114
107 #endif // V8_COMPILER_H_ 115 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/compilation-cache.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698