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

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

Issue 2007943002: [runtime] Fix number of literals for builtin functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix unittest. Created 4 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/objects.h ('k') | src/objects-printer.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 6220 matching lines...) Expand 10 before | Expand all | Expand 10 after
6231 6231
6232 bool JSFunction::is_compiled() { 6232 bool JSFunction::is_compiled() {
6233 Builtins* builtins = GetIsolate()->builtins(); 6233 Builtins* builtins = GetIsolate()->builtins();
6234 return code() != builtins->builtin(Builtins::kCompileLazy) && 6234 return code() != builtins->builtin(Builtins::kCompileLazy) &&
6235 code() != builtins->builtin(Builtins::kCompileBaseline) && 6235 code() != builtins->builtin(Builtins::kCompileBaseline) &&
6236 code() != builtins->builtin(Builtins::kCompileOptimized) && 6236 code() != builtins->builtin(Builtins::kCompileOptimized) &&
6237 code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent); 6237 code() != builtins->builtin(Builtins::kCompileOptimizedConcurrent);
6238 } 6238 }
6239 6239
6240 6240
6241 int JSFunction::NumberOfLiterals() {
6242 return literals()->length();
6243 }
6244
6245
6246 ACCESSORS(JSProxy, target, JSReceiver, kTargetOffset) 6241 ACCESSORS(JSProxy, target, JSReceiver, kTargetOffset)
6247 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) 6242 ACCESSORS(JSProxy, handler, Object, kHandlerOffset)
6248 ACCESSORS(JSProxy, hash, Object, kHashOffset) 6243 ACCESSORS(JSProxy, hash, Object, kHashOffset)
6249 6244
6250 bool JSProxy::IsRevoked() const { return !handler()->IsJSReceiver(); } 6245 bool JSProxy::IsRevoked() const { return !handler()->IsJSReceiver(); }
6251 6246
6252 ACCESSORS(JSCollection, table, Object, kTableOffset) 6247 ACCESSORS(JSCollection, table, Object, kTableOffset)
6253 6248
6254 6249
6255 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \ 6250 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
7842 #undef WRITE_INT64_FIELD 7837 #undef WRITE_INT64_FIELD
7843 #undef READ_BYTE_FIELD 7838 #undef READ_BYTE_FIELD
7844 #undef WRITE_BYTE_FIELD 7839 #undef WRITE_BYTE_FIELD
7845 #undef NOBARRIER_READ_BYTE_FIELD 7840 #undef NOBARRIER_READ_BYTE_FIELD
7846 #undef NOBARRIER_WRITE_BYTE_FIELD 7841 #undef NOBARRIER_WRITE_BYTE_FIELD
7847 7842
7848 } // namespace internal 7843 } // namespace internal
7849 } // namespace v8 7844 } // namespace v8
7850 7845
7851 #endif // V8_OBJECTS_INL_H_ 7846 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698