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

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

Issue 1692713005: ES6: Desugaring of instanceof to support @@hasInstance (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@blah
Patch Set: Fixed todos. Created 4 years, 10 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
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/base/platform/time.h" 9 #include "src/base/platform/time.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 F(FunctionGetScriptSourcePosition, 1, 1) \ 233 F(FunctionGetScriptSourcePosition, 1, 1) \
234 F(FunctionGetPositionForOffset, 2, 1) \ 234 F(FunctionGetPositionForOffset, 2, 1) \
235 F(FunctionSetInstanceClassName, 2, 1) \ 235 F(FunctionSetInstanceClassName, 2, 1) \
236 F(FunctionSetLength, 2, 1) \ 236 F(FunctionSetLength, 2, 1) \
237 F(FunctionSetPrototype, 2, 1) \ 237 F(FunctionSetPrototype, 2, 1) \
238 F(FunctionIsAPIFunction, 1, 1) \ 238 F(FunctionIsAPIFunction, 1, 1) \
239 F(SetCode, 2, 1) \ 239 F(SetCode, 2, 1) \
240 F(SetNativeFlag, 1, 1) \ 240 F(SetNativeFlag, 1, 1) \
241 F(ThrowStrongModeTooFewArguments, 0, 1) \ 241 F(ThrowStrongModeTooFewArguments, 0, 1) \
242 F(IsConstructor, 1, 1) \ 242 F(IsConstructor, 1, 1) \
243 F(IsCallable, 1, 1) \
243 F(SetForceInlineFlag, 1, 1) \ 244 F(SetForceInlineFlag, 1, 1) \
244 F(Call, -1 /* >= 2 */, 1) \ 245 F(Call, -1 /* >= 2 */, 1) \
245 F(TailCall, -1 /* >= 2 */, 1) \ 246 F(TailCall, -1 /* >= 2 */, 1) \
246 F(Apply, 5, 1) \ 247 F(Apply, 5, 1) \
247 F(ConvertReceiver, 1, 1) \ 248 F(ConvertReceiver, 1, 1) \
248 F(IsFunction, 1, 1) \ 249 F(IsFunction, 1, 1) \
249 F(FunctionToString, 1, 1) 250 F(FunctionToString, 1, 1)
250 251
251
252 #define FOR_EACH_INTRINSIC_GENERATOR(F) \ 252 #define FOR_EACH_INTRINSIC_GENERATOR(F) \
253 F(CreateJSGeneratorObject, 0, 1) \ 253 F(CreateJSGeneratorObject, 0, 1) \
254 F(SuspendJSGeneratorObject, 1, 1) \ 254 F(SuspendJSGeneratorObject, 1, 1) \
255 F(ResumeJSGeneratorObject, 3, 1) \ 255 F(ResumeJSGeneratorObject, 3, 1) \
256 F(GeneratorClose, 1, 1) \ 256 F(GeneratorClose, 1, 1) \
257 F(GeneratorGetFunction, 1, 1) \ 257 F(GeneratorGetFunction, 1, 1) \
258 F(GeneratorGetContext, 1, 1) \ 258 F(GeneratorGetContext, 1, 1) \
259 F(GeneratorGetReceiver, 1, 1) \ 259 F(GeneratorGetReceiver, 1, 1) \
260 F(GeneratorGetInput, 1, 1) \ 260 F(GeneratorGetInput, 1, 1) \
261 F(GeneratorGetContinuation, 1, 1) \ 261 F(GeneratorGetContinuation, 1, 1) \
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 1228
1229 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1229 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1230 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1230 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1231 STATIC_ASSERT(LANGUAGE_END == 3); 1231 STATIC_ASSERT(LANGUAGE_END == 3);
1232 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {}; 1232 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 2> {};
1233 1233
1234 } // namespace internal 1234 } // namespace internal
1235 } // namespace v8 1235 } // namespace v8
1236 1236
1237 #endif // V8_RUNTIME_RUNTIME_H_ 1237 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698