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

Side by Side Diff: src/builtins.h

Issue 817293005: Avoid unintentional optimization of hot builtins by TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed. Created 5 years, 11 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/bootstrapper.cc ('k') | src/compiler/pipeline.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_BUILTINS_H_ 5 #ifndef V8_BUILTINS_H_
6 #define V8_BUILTINS_H_ 6 #define V8_BUILTINS_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 return c_functions_[id]; 265 return c_functions_[id];
266 } 266 }
267 267
268 static const char* GetName(JavaScript id) { return javascript_names_[id]; } 268 static const char* GetName(JavaScript id) { return javascript_names_[id]; }
269 const char* name(int index) { 269 const char* name(int index) {
270 DCHECK(index >= 0); 270 DCHECK(index >= 0);
271 DCHECK(index < builtin_count); 271 DCHECK(index < builtin_count);
272 return names_[index]; 272 return names_[index];
273 } 273 }
274 static int GetArgumentsCount(JavaScript id) { return javascript_argc_[id]; } 274 static int GetArgumentsCount(JavaScript id) { return javascript_argc_[id]; }
275 Handle<Code> GetCode(JavaScript id, bool* resolved);
276 static int NumberOfJavaScriptBuiltins() { return id_count; } 275 static int NumberOfJavaScriptBuiltins() { return id_count; }
277 276
278 bool is_initialized() const { return initialized_; } 277 bool is_initialized() const { return initialized_; }
279 278
280 private: 279 private:
281 Builtins(); 280 Builtins();
282 281
283 // The external C++ functions called from the code. 282 // The external C++ functions called from the code.
284 static Address const c_functions_[cfunction_count]; 283 static Address const c_functions_[cfunction_count];
285 284
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 337
339 friend class BuiltinFunctionTable; 338 friend class BuiltinFunctionTable;
340 friend class Isolate; 339 friend class Isolate;
341 340
342 DISALLOW_COPY_AND_ASSIGN(Builtins); 341 DISALLOW_COPY_AND_ASSIGN(Builtins);
343 }; 342 };
344 343
345 } } // namespace v8::internal 344 } } // namespace v8::internal
346 345
347 #endif // V8_BUILTINS_H_ 346 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698