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

Side by Side Diff: src/builtins.h

Issue 71163006: Merge bleeding_edge r17376:17693. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix all.gyp Created 7 years, 1 month 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/ast.cc ('k') | src/builtins.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 // 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 V(Quinquagenarian, A) \ 43 V(Quinquagenarian, A) \
44 V(Sexagenarian, A) \ 44 V(Sexagenarian, A) \
45 V(Septuagenarian, A) \ 45 V(Septuagenarian, A) \
46 V(Octogenarian, A) 46 V(Octogenarian, A)
47 47
48 #define CODE_AGE_LIST_IGNORE_ARG(X, V) V(X) 48 #define CODE_AGE_LIST_IGNORE_ARG(X, V) V(X)
49 49
50 #define CODE_AGE_LIST(V) \ 50 #define CODE_AGE_LIST(V) \
51 CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V) 51 CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V)
52 52
53 #define CODE_AGE_LIST_WITH_NO_AGE(V) \ 53 #define CODE_AGE_LIST_COMPLETE(V) \
54 V(NotExecuted) \
55 V(ExecutedOnce) \
54 V(NoAge) \ 56 V(NoAge) \
55 CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V) 57 CODE_AGE_LIST_WITH_ARG(CODE_AGE_LIST_IGNORE_ARG, V)
56 58
57 #define DECLARE_CODE_AGE_BUILTIN(C, V) \ 59 #define DECLARE_CODE_AGE_BUILTIN(C, V) \
58 V(Make##C##CodeYoungAgainOddMarking, BUILTIN, \ 60 V(Make##C##CodeYoungAgainOddMarking, BUILTIN, \
59 UNINITIALIZED, Code::kNoExtraICState) \ 61 UNINITIALIZED, Code::kNoExtraICState) \
60 V(Make##C##CodeYoungAgainEvenMarking, BUILTIN, \ 62 V(Make##C##CodeYoungAgainEvenMarking, BUILTIN, \
61 UNINITIALIZED, Code::kNoExtraICState) 63 UNINITIALIZED, Code::kNoExtraICState)
62 64
63 65
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 359
358 Address builtin_address(Name name) { 360 Address builtin_address(Name name) {
359 return reinterpret_cast<Address>(&builtins_[name]); 361 return reinterpret_cast<Address>(&builtins_[name]);
360 } 362 }
361 363
362 static Address c_function_address(CFunctionId id) { 364 static Address c_function_address(CFunctionId id) {
363 return c_functions_[id]; 365 return c_functions_[id];
364 } 366 }
365 367
366 static const char* GetName(JavaScript id) { return javascript_names_[id]; } 368 static const char* GetName(JavaScript id) { return javascript_names_[id]; }
369 const char* name(int index) {
370 ASSERT(index >= 0);
371 ASSERT(index < builtin_count);
372 return names_[index];
373 }
367 static int GetArgumentsCount(JavaScript id) { return javascript_argc_[id]; } 374 static int GetArgumentsCount(JavaScript id) { return javascript_argc_[id]; }
368 Handle<Code> GetCode(JavaScript id, bool* resolved); 375 Handle<Code> GetCode(JavaScript id, bool* resolved);
369 static int NumberOfJavaScriptBuiltins() { return id_count; } 376 static int NumberOfJavaScriptBuiltins() { return id_count; }
370 377
371 bool is_initialized() const { return initialized_; } 378 bool is_initialized() const { return initialized_; }
372 379
373 private: 380 private:
374 Builtins(); 381 Builtins();
375 382
376 // The external C++ functions called from the code. 383 // The external C++ functions called from the code.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 438
432 friend class BuiltinFunctionTable; 439 friend class BuiltinFunctionTable;
433 friend class Isolate; 440 friend class Isolate;
434 441
435 DISALLOW_COPY_AND_ASSIGN(Builtins); 442 DISALLOW_COPY_AND_ASSIGN(Builtins);
436 }; 443 };
437 444
438 } } // namespace v8::internal 445 } } // namespace v8::internal
439 446
440 #endif // V8_BUILTINS_H_ 447 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698