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

Side by Side Diff: src/builtins.h

Issue 8932004: Implement target cache for constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Vyacheslav Egorov. Created 8 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 | Annotate | Revision Log
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ 60 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \
61 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ 61 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \
62 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \ 62 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \
63 \ 63 \
64 V(StrictModePoisonPill, NO_EXTRA_ARGUMENTS) 64 V(StrictModePoisonPill, NO_EXTRA_ARGUMENTS)
65 65
66 // Define list of builtins implemented in assembly. 66 // Define list of builtins implemented in assembly.
67 #define BUILTIN_LIST_A(V) \ 67 #define BUILTIN_LIST_A(V) \
68 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, \ 68 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, \
69 Code::kNoExtraICState) \ 69 Code::kNoExtraICState) \
70 V(JSConstructCall, BUILTIN, UNINITIALIZED, \
71 Code::kNoExtraICState) \
72 V(JSConstructStubCountdown, BUILTIN, UNINITIALIZED, \ 70 V(JSConstructStubCountdown, BUILTIN, UNINITIALIZED, \
73 Code::kNoExtraICState) \ 71 Code::kNoExtraICState) \
74 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, \ 72 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, \
75 Code::kNoExtraICState) \ 73 Code::kNoExtraICState) \
76 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, \ 74 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, \
77 Code::kNoExtraICState) \ 75 Code::kNoExtraICState) \
78 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, \ 76 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, \
79 Code::kNoExtraICState) \ 77 Code::kNoExtraICState) \
80 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, \ 78 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, \
81 Code::kNoExtraICState) \ 79 Code::kNoExtraICState) \
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 // IterateBuiltins() above which assumes Object**'s for the callback 337 // IterateBuiltins() above which assumes Object**'s for the callback
340 // function f, we use an Object* array here. 338 // function f, we use an Object* array here.
341 Object* builtins_[builtin_count]; 339 Object* builtins_[builtin_count];
342 const char* names_[builtin_count]; 340 const char* names_[builtin_count];
343 static const char* const javascript_names_[id_count]; 341 static const char* const javascript_names_[id_count];
344 static int const javascript_argc_[id_count]; 342 static int const javascript_argc_[id_count];
345 343
346 static void Generate_Adaptor(MacroAssembler* masm, 344 static void Generate_Adaptor(MacroAssembler* masm,
347 CFunctionId id, 345 CFunctionId id,
348 BuiltinExtraArguments extra_args); 346 BuiltinExtraArguments extra_args);
349 static void Generate_JSConstructCall(MacroAssembler* masm);
350 static void Generate_JSConstructStubCountdown(MacroAssembler* masm); 347 static void Generate_JSConstructStubCountdown(MacroAssembler* masm);
351 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); 348 static void Generate_JSConstructStubGeneric(MacroAssembler* masm);
352 static void Generate_JSConstructStubApi(MacroAssembler* masm); 349 static void Generate_JSConstructStubApi(MacroAssembler* masm);
353 static void Generate_JSEntryTrampoline(MacroAssembler* masm); 350 static void Generate_JSEntryTrampoline(MacroAssembler* masm);
354 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); 351 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm);
355 static void Generate_LazyCompile(MacroAssembler* masm); 352 static void Generate_LazyCompile(MacroAssembler* masm);
356 static void Generate_LazyRecompile(MacroAssembler* masm); 353 static void Generate_LazyRecompile(MacroAssembler* masm);
357 static void Generate_NotifyDeoptimized(MacroAssembler* masm); 354 static void Generate_NotifyDeoptimized(MacroAssembler* masm);
358 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); 355 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm);
359 static void Generate_NotifyOSR(MacroAssembler* masm); 356 static void Generate_NotifyOSR(MacroAssembler* masm);
(...skipping 15 matching lines...) Expand all
375 372
376 friend class BuiltinFunctionTable; 373 friend class BuiltinFunctionTable;
377 friend class Isolate; 374 friend class Isolate;
378 375
379 DISALLOW_COPY_AND_ASSIGN(Builtins); 376 DISALLOW_COPY_AND_ASSIGN(Builtins);
380 }; 377 };
381 378
382 } } // namespace v8::internal 379 } } // namespace v8::internal
383 380
384 #endif // V8_BUILTINS_H_ 381 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs.h » ('j') | src/type-info.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698