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

Side by Side Diff: src/codegen.h

Issue 573056: Add fuzzing support for inline runtime functions (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/codegen.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 #else 92 #else
93 #error Unsupported target architecture. 93 #error Unsupported target architecture.
94 #endif 94 #endif
95 95
96 #include "register-allocator.h" 96 #include "register-allocator.h"
97 97
98 namespace v8 { 98 namespace v8 {
99 namespace internal { 99 namespace internal {
100 100
101 101
102 #define INLINE_RUNTIME_FUNCTION_LIST(F) \
103 F(IsSmi, 1, 1) \
104 F(IsNonNegativeSmi, 1, 1) \
105 F(IsArray, 1, 1) \
106 F(IsRegExp, 1, 1) \
107 F(IsConstructCall, 0, 1) \
108 F(ArgumentsLength, 0, 1) \
109 F(Arguments, 1, 1) \
110 F(ClassOf, 1, 1) \
111 F(ValueOf, 1, 1) \
112 F(SetValueOf, 2, 1) \
113 F(FastCharCodeAt, 2, 1) \
114 F(CharFromCode, 1, 1) \
115 F(ObjectEquals, 2, 1) \
116 F(Log, 3, 1) \
117 F(RandomPositiveSmi, 0, 1) \
118 F(IsObject, 1, 1) \
119 F(IsFunction, 1, 1) \
120 F(IsUndetectableObject, 1, 1) \
121 F(StringAdd, 2, 1) \
122 F(SubString, 3, 1) \
123 F(StringCompare, 2, 1) \
124 F(RegExpExec, 4, 1) \
125 F(NumberToString, 1, 1) \
126 F(MathPow, 2, 1) \
127 F(MathSin, 1, 1) \
128 F(MathCos, 1, 1) \
129 F(MathSqrt, 1, 1)
130
131
102 // Support for "structured" code comments. 132 // Support for "structured" code comments.
103 #ifdef DEBUG 133 #ifdef DEBUG
104 134
105 class Comment BASE_EMBEDDED { 135 class Comment BASE_EMBEDDED {
106 public: 136 public:
107 Comment(MacroAssembler* masm, const char* msg); 137 Comment(MacroAssembler* masm, const char* msg);
108 ~Comment(); 138 ~Comment();
109 139
110 private: 140 private:
111 MacroAssembler* masm_; 141 MacroAssembler* masm_;
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 private: 582 private:
553 Major MajorKey() { return ToBoolean; } 583 Major MajorKey() { return ToBoolean; }
554 int MinorKey() { return 0; } 584 int MinorKey() { return 0; }
555 }; 585 };
556 586
557 587
558 } // namespace internal 588 } // namespace internal
559 } // namespace v8 589 } // namespace v8
560 590
561 #endif // V8_CODEGEN_H_ 591 #endif // V8_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698