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

Side by Side Diff: src/runtime/runtime.h

Issue 1048063002: Added %_Likely/%_Unlikely intrinsics (special cases of GCC's __builin_expect). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed feedback. Win fix. Created 5 years, 8 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/hydrogen.cc ('k') | src/runtime/runtime-internal.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 #ifndef V8_RUNTIME_RUNTIME_H_ 5 #ifndef V8_RUNTIME_RUNTIME_H_
6 #define V8_RUNTIME_RUNTIME_H_ 6 #define V8_RUNTIME_RUNTIME_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/objects.h" 9 #include "src/objects.h"
10 #include "src/zone.h" 10 #include "src/zone.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 F(DebugAsyncTaskEvent, 1, 1) \ 81 F(DebugAsyncTaskEvent, 1, 1) \
82 F(PromiseRejectEvent, 3, 1) \ 82 F(PromiseRejectEvent, 3, 1) \
83 F(PromiseRevokeReject, 1, 1) \ 83 F(PromiseRevokeReject, 1, 1) \
84 F(PromiseHasHandlerSymbol, 0, 1) \ 84 F(PromiseHasHandlerSymbol, 0, 1) \
85 F(FlattenString, 1, 1) \ 85 F(FlattenString, 1, 1) \
86 F(LoadMutableDouble, 2, 1) \ 86 F(LoadMutableDouble, 2, 1) \
87 F(TryMigrateInstance, 1, 1) \ 87 F(TryMigrateInstance, 1, 1) \
88 F(NotifyContextDisposed, 0, 1) \ 88 F(NotifyContextDisposed, 0, 1) \
89 F(ThrowIteratorResultNotAnObject, 1, 1) \ 89 F(ThrowIteratorResultNotAnObject, 1, 1) \
90 F(IncrementStatsCounter, 1, 1) \ 90 F(IncrementStatsCounter, 1, 1) \
91 F(Likely, 1, 1) \
92 F(Unlikely, 1, 1) \
91 \ 93 \
92 /* Array join support */ \ 94 /* Array join support */ \
93 F(PushIfAbsent, 2, 1) \ 95 F(PushIfAbsent, 2, 1) \
94 F(ArrayConcat, 1, 1) \ 96 F(ArrayConcat, 1, 1) \
95 \ 97 \
96 /* Conversions */ \ 98 /* Conversions */ \
97 F(ToBool, 1, 1) \ 99 F(ToBool, 1, 1) \
98 F(Typeof, 1, 1) \ 100 F(Typeof, 1, 1) \
99 \ 101 \
100 F(StringToNumber, 1, 1) \ 102 F(StringToNumber, 1, 1) \
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 907
906 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 908 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
907 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 909 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
908 STATIC_ASSERT(LANGUAGE_END == 3); 910 STATIC_ASSERT(LANGUAGE_END == 3);
909 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 911 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
910 912
911 } // namespace internal 913 } // namespace internal
912 } // namespace v8 914 } // namespace v8
913 915
914 #endif // V8_RUNTIME_RUNTIME_H_ 916 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698