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

Side by Side Diff: src/objects-inl.h

Issue 2358503002: Change the CompilerDispatcherJob to take a SharedFunctionInfo (Closed)
Patch Set: updates Created 4 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/objects-debug.cc ('k') | src/runtime/runtime-function.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 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 6180 matching lines...) Expand 10 before | Expand all | Expand 10 after
6191 void SharedFunctionInfo::set_scope_info(ScopeInfo* value, 6191 void SharedFunctionInfo::set_scope_info(ScopeInfo* value,
6192 WriteBarrierMode mode) { 6192 WriteBarrierMode mode) {
6193 WRITE_FIELD(this, kScopeInfoOffset, reinterpret_cast<Object*>(value)); 6193 WRITE_FIELD(this, kScopeInfoOffset, reinterpret_cast<Object*>(value));
6194 CONDITIONAL_WRITE_BARRIER(GetHeap(), 6194 CONDITIONAL_WRITE_BARRIER(GetHeap(),
6195 this, 6195 this,
6196 kScopeInfoOffset, 6196 kScopeInfoOffset,
6197 reinterpret_cast<Object*>(value), 6197 reinterpret_cast<Object*>(value),
6198 mode); 6198 mode);
6199 } 6199 }
6200 6200
6201 ACCESSORS(SharedFunctionInfo, outer_scope_info, HeapObject,
6202 kOuterScopeInfoOffset)
6203
6201 bool SharedFunctionInfo::is_compiled() const { 6204 bool SharedFunctionInfo::is_compiled() const {
6202 Builtins* builtins = GetIsolate()->builtins(); 6205 Builtins* builtins = GetIsolate()->builtins();
6203 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent)); 6206 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent));
6204 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimized)); 6207 DCHECK(code() != builtins->builtin(Builtins::kCompileOptimized));
6205 DCHECK(code() != builtins->builtin(Builtins::kCompileBaseline)); 6208 DCHECK(code() != builtins->builtin(Builtins::kCompileBaseline));
6206 return code() != builtins->builtin(Builtins::kCompileLazy); 6209 return code() != builtins->builtin(Builtins::kCompileLazy);
6207 } 6210 }
6208 6211
6209 6212
6210 bool SharedFunctionInfo::has_simple_parameters() { 6213 bool SharedFunctionInfo::has_simple_parameters() {
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after
8290 #undef WRITE_INT64_FIELD 8293 #undef WRITE_INT64_FIELD
8291 #undef READ_BYTE_FIELD 8294 #undef READ_BYTE_FIELD
8292 #undef WRITE_BYTE_FIELD 8295 #undef WRITE_BYTE_FIELD
8293 #undef NOBARRIER_READ_BYTE_FIELD 8296 #undef NOBARRIER_READ_BYTE_FIELD
8294 #undef NOBARRIER_WRITE_BYTE_FIELD 8297 #undef NOBARRIER_WRITE_BYTE_FIELD
8295 8298
8296 } // namespace internal 8299 } // namespace internal
8297 } // namespace v8 8300 } // namespace v8
8298 8301
8299 #endif // V8_OBJECTS_INL_H_ 8302 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime/runtime-function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698