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

Side by Side Diff: src/builtins.h

Issue 23480031: Enable preaging of code objects when --optimize-for-size. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: bool -> enum Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/assembler.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 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 Code::kNoExtraICState) \ 197 Code::kNoExtraICState) \
198 \ 198 \
199 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \ 199 V(OnStackReplacement, BUILTIN, UNINITIALIZED, \
200 Code::kNoExtraICState) \ 200 Code::kNoExtraICState) \
201 V(InterruptCheck, BUILTIN, UNINITIALIZED, \ 201 V(InterruptCheck, BUILTIN, UNINITIALIZED, \
202 Code::kNoExtraICState) \ 202 Code::kNoExtraICState) \
203 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, \ 203 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, \
204 Code::kNoExtraICState) \ 204 Code::kNoExtraICState) \
205 V(StackCheck, BUILTIN, UNINITIALIZED, \ 205 V(StackCheck, BUILTIN, UNINITIALIZED, \
206 Code::kNoExtraICState) \ 206 Code::kNoExtraICState) \
207 \
208 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, \
209 Code::kNoExtraICState) \
210 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, \
211 Code::kNoExtraICState) \
207 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) 212 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V)
208 213
209 // Define list of builtin handlers implemented in assembly. 214 // Define list of builtin handlers implemented in assembly.
210 #define BUILTIN_LIST_H(V) \ 215 #define BUILTIN_LIST_H(V) \
211 V(LoadIC_Slow, LOAD_IC, Code::kNoExtraICState) \ 216 V(LoadIC_Slow, LOAD_IC, Code::kNoExtraICState) \
212 V(KeyedLoadIC_Slow, KEYED_LOAD_IC, Code::kNoExtraICState) \ 217 V(KeyedLoadIC_Slow, KEYED_LOAD_IC, Code::kNoExtraICState) \
213 V(StoreIC_Slow, STORE_IC, Code::kNoExtraICState) \ 218 V(StoreIC_Slow, STORE_IC, Code::kNoExtraICState) \
214 V(StoreIC_Slow_Strict, STORE_IC, kStrictMode) \ 219 V(StoreIC_Slow_Strict, STORE_IC, kStrictMode) \
215 V(KeyedStoreIC_Slow, KEYED_STORE_IC, Code::kNoExtraICState)\ 220 V(KeyedStoreIC_Slow, KEYED_STORE_IC, Code::kNoExtraICState)\
216 V(KeyedStoreIC_Slow_Strict, KEYED_STORE_IC, kStrictMode) \ 221 V(KeyedStoreIC_Slow_Strict, KEYED_STORE_IC, kStrictMode) \
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 static void Generate_StackCheck(MacroAssembler* masm); 411 static void Generate_StackCheck(MacroAssembler* masm);
407 412
408 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \ 413 #define DECLARE_CODE_AGE_BUILTIN_GENERATOR(C) \
409 static void Generate_Make##C##CodeYoungAgainEvenMarking( \ 414 static void Generate_Make##C##CodeYoungAgainEvenMarking( \
410 MacroAssembler* masm); \ 415 MacroAssembler* masm); \
411 static void Generate_Make##C##CodeYoungAgainOddMarking( \ 416 static void Generate_Make##C##CodeYoungAgainOddMarking( \
412 MacroAssembler* masm); 417 MacroAssembler* masm);
413 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR) 418 CODE_AGE_LIST(DECLARE_CODE_AGE_BUILTIN_GENERATOR)
414 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR 419 #undef DECLARE_CODE_AGE_BUILTIN_GENERATOR
415 420
421 static void Generate_MarkCodeAsExecutedOnce(MacroAssembler* masm);
422 static void Generate_MarkCodeAsExecutedTwice(MacroAssembler* masm);
423
416 static void InitBuiltinFunctionTable(); 424 static void InitBuiltinFunctionTable();
417 425
418 bool initialized_; 426 bool initialized_;
419 427
420 friend class BuiltinFunctionTable; 428 friend class BuiltinFunctionTable;
421 friend class Isolate; 429 friend class Isolate;
422 430
423 DISALLOW_COPY_AND_ASSIGN(Builtins); 431 DISALLOW_COPY_AND_ASSIGN(Builtins);
424 }; 432 };
425 433
426 } } // namespace v8::internal 434 } } // namespace v8::internal
427 435
428 #endif // V8_BUILTINS_H_ 436 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698