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

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

Issue 2402363002: [Math] implement Math.random as TFJ builtin. (Closed)
Patch Set: fix golden file Created 4 years, 2 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 <memory> 8 #include <memory>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 F(LiveEditReplaceScript, 3, 1) \ 344 F(LiveEditReplaceScript, 3, 1) \
345 F(LiveEditFunctionSourceUpdated, 1, 1) \ 345 F(LiveEditFunctionSourceUpdated, 1, 1) \
346 F(LiveEditReplaceFunctionCode, 2, 1) \ 346 F(LiveEditReplaceFunctionCode, 2, 1) \
347 F(LiveEditFunctionSetScript, 2, 1) \ 347 F(LiveEditFunctionSetScript, 2, 1) \
348 F(LiveEditReplaceRefToNestedFunction, 3, 1) \ 348 F(LiveEditReplaceRefToNestedFunction, 3, 1) \
349 F(LiveEditPatchFunctionPositions, 2, 1) \ 349 F(LiveEditPatchFunctionPositions, 2, 1) \
350 F(LiveEditCheckAndDropActivations, 3, 1) \ 350 F(LiveEditCheckAndDropActivations, 3, 1) \
351 F(LiveEditCompareStrings, 2, 1) \ 351 F(LiveEditCompareStrings, 2, 1) \
352 F(LiveEditRestartFrame, 2, 1) 352 F(LiveEditRestartFrame, 2, 1)
353 353
354 #define FOR_EACH_INTRINSIC_MATHS(F) F(GenerateRandomNumbers, 1, 1) 354 #define FOR_EACH_INTRINSIC_MATHS(F) F(GenerateRandomNumbers, 0, 1)
355 355
356 #define FOR_EACH_INTRINSIC_NUMBERS(F) \ 356 #define FOR_EACH_INTRINSIC_NUMBERS(F) \
357 F(IsValidSmi, 1, 1) \ 357 F(IsValidSmi, 1, 1) \
358 F(StringToNumber, 1, 1) \ 358 F(StringToNumber, 1, 1) \
359 F(StringParseInt, 2, 1) \ 359 F(StringParseInt, 2, 1) \
360 F(StringParseFloat, 1, 1) \ 360 F(StringParseFloat, 1, 1) \
361 F(NumberToString, 1, 1) \ 361 F(NumberToString, 1, 1) \
362 F(NumberToStringSkipCache, 1, 1) \ 362 F(NumberToStringSkipCache, 1, 1) \
363 F(NumberToSmi, 1, 1) \ 363 F(NumberToSmi, 1, 1) \
364 F(SmiLexicographicCompare, 2, 1) \ 364 F(SmiLexicographicCompare, 2, 1) \
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 1127
1128 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {}; 1128 class DeclareGlobalsEvalFlag : public BitField<bool, 0, 1> {};
1129 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {}; 1129 class DeclareGlobalsNativeFlag : public BitField<bool, 1, 1> {};
1130 STATIC_ASSERT(LANGUAGE_END == 2); 1130 STATIC_ASSERT(LANGUAGE_END == 2);
1131 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {}; 1131 class DeclareGlobalsLanguageMode : public BitField<LanguageMode, 2, 1> {};
1132 1132
1133 } // namespace internal 1133 } // namespace internal
1134 } // namespace v8 1134 } // namespace v8
1135 1135
1136 #endif // V8_RUNTIME_RUNTIME_H_ 1136 #endif // V8_RUNTIME_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/js/math.js ('k') | src/runtime/runtime-maths.cc » ('j') | test/mjsunit/debug-script.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698