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

Side by Side Diff: src/builtins.h

Issue 954001: Add Array.concat builtin for the most common case. (Closed)
Patch Set: Adding counters 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
« no previous file with comments | « src/array.js ('k') | src/builtins.cc » ('j') | src/builtins.cc » ('J')
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 V(EmptyFunction, NO_EXTRA_ARGUMENTS) \ 45 V(EmptyFunction, NO_EXTRA_ARGUMENTS) \
46 \ 46 \
47 V(ArrayCodeGeneric, NO_EXTRA_ARGUMENTS) \ 47 V(ArrayCodeGeneric, NO_EXTRA_ARGUMENTS) \
48 \ 48 \
49 V(ArrayPush, NO_EXTRA_ARGUMENTS) \ 49 V(ArrayPush, NO_EXTRA_ARGUMENTS) \
50 V(ArrayPop, NO_EXTRA_ARGUMENTS) \ 50 V(ArrayPop, NO_EXTRA_ARGUMENTS) \
51 V(ArrayShift, NO_EXTRA_ARGUMENTS) \ 51 V(ArrayShift, NO_EXTRA_ARGUMENTS) \
52 V(ArrayUnshift, NO_EXTRA_ARGUMENTS) \ 52 V(ArrayUnshift, NO_EXTRA_ARGUMENTS) \
53 V(ArraySlice, NO_EXTRA_ARGUMENTS) \ 53 V(ArraySlice, NO_EXTRA_ARGUMENTS) \
54 V(ArraySplice, NO_EXTRA_ARGUMENTS) \ 54 V(ArraySplice, NO_EXTRA_ARGUMENTS) \
55 V(ArrayConcat, NO_EXTRA_ARGUMENTS) \
55 \ 56 \
56 V(HandleApiCall, NEEDS_CALLED_FUNCTION) \ 57 V(HandleApiCall, NEEDS_CALLED_FUNCTION) \
57 V(FastHandleApiCall, NO_EXTRA_ARGUMENTS) \ 58 V(FastHandleApiCall, NO_EXTRA_ARGUMENTS) \
58 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ 59 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \
59 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ 60 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \
60 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) 61 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS)
61 62
62 63
63 // Define list of builtins implemented in assembly. 64 // Define list of builtins implemented in assembly.
64 #define BUILTIN_LIST_A(V) \ 65 #define BUILTIN_LIST_A(V) \
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 static void Generate_FunctionCall(MacroAssembler* masm); 251 static void Generate_FunctionCall(MacroAssembler* masm);
251 static void Generate_FunctionApply(MacroAssembler* masm); 252 static void Generate_FunctionApply(MacroAssembler* masm);
252 253
253 static void Generate_ArrayCode(MacroAssembler* masm); 254 static void Generate_ArrayCode(MacroAssembler* masm);
254 static void Generate_ArrayConstructCode(MacroAssembler* masm); 255 static void Generate_ArrayConstructCode(MacroAssembler* masm);
255 }; 256 };
256 257
257 } } // namespace v8::internal 258 } } // namespace v8::internal
258 259
259 #endif // V8_BUILTINS_H_ 260 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/builtins.cc » ('j') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698