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

Side by Side Diff: src/parser.cc

Issue 1028973002: Move this_has_uses from ParseInfo back into CompilationInfo and renumber CompilationInfo flags. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/parser.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 set_closure(function); 57 set_closure(function);
58 set_context(Handle<Context>(function->context())); 58 set_context(Handle<Context>(function->context()));
59 } 59 }
60 60
61 61
62 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) 62 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared)
63 : ParseInfo(zone) { 63 : ParseInfo(zone) {
64 isolate_ = shared->GetIsolate(); 64 isolate_ = shared->GetIsolate();
65 65
66 set_lazy(); 66 set_lazy();
67 set_this_has_uses();
68 set_hash_seed(isolate_->heap()->HashSeed()); 67 set_hash_seed(isolate_->heap()->HashSeed());
69 set_stack_limit(isolate_->stack_guard()->real_climit()); 68 set_stack_limit(isolate_->stack_guard()->real_climit());
70 set_unicode_cache(isolate_->unicode_cache()); 69 set_unicode_cache(isolate_->unicode_cache());
71 set_language_mode(shared->language_mode()); 70 set_language_mode(shared->language_mode());
72 set_shared_info(shared); 71 set_shared_info(shared);
73 72
74 Handle<Script> script(Script::cast(shared->script())); 73 Handle<Script> script(Script::cast(shared->script()));
75 set_script(script); 74 set_script(script);
76 if (!script.is_null() && script->type()->value() == Script::TYPE_NATIVE) { 75 if (!script.is_null() && script->type()->value() == Script::TYPE_NATIVE) {
77 set_native(); 76 set_native();
78 } 77 }
79 } 78 }
80 79
81 80
82 ParseInfo::ParseInfo(Zone* zone, Handle<Script> script) : ParseInfo(zone) { 81 ParseInfo::ParseInfo(Zone* zone, Handle<Script> script) : ParseInfo(zone) {
83 isolate_ = script->GetIsolate(); 82 isolate_ = script->GetIsolate();
84 83
85 set_this_has_uses();
86 set_hash_seed(isolate_->heap()->HashSeed()); 84 set_hash_seed(isolate_->heap()->HashSeed());
87 set_stack_limit(isolate_->stack_guard()->real_climit()); 85 set_stack_limit(isolate_->stack_guard()->real_climit());
88 set_unicode_cache(isolate_->unicode_cache()); 86 set_unicode_cache(isolate_->unicode_cache());
89 set_script(script); 87 set_script(script);
90 88
91 if (script->type()->value() == Script::TYPE_NATIVE) { 89 if (script->type()->value() == Script::TYPE_NATIVE) {
92 set_native(); 90 set_native();
93 } 91 }
94 } 92 }
95 93
(...skipping 5462 matching lines...) Expand 10 before | Expand all | Expand 10 after
5558 } else { 5556 } else {
5559 const uc16* data = reinterpret_cast<const uc16*>(raw_string->raw_data()); 5557 const uc16* data = reinterpret_cast<const uc16*>(raw_string->raw_data());
5560 running_hash = StringHasher::ComputeRunningHash(running_hash, data, 5558 running_hash = StringHasher::ComputeRunningHash(running_hash, data,
5561 raw_string->length()); 5559 raw_string->length());
5562 } 5560 }
5563 } 5561 }
5564 5562
5565 return running_hash; 5563 return running_hash;
5566 } 5564 }
5567 } } // namespace v8::internal 5565 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698