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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 8883011: Implement ICs for constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 InvokeFlag flag, 277 InvokeFlag flag,
278 const CallWrapper& call_wrapper, 278 const CallWrapper& call_wrapper,
279 CallKind call_kind); 279 CallKind call_kind);
280 280
281 void InvokeFunction(Handle<JSFunction> function, 281 void InvokeFunction(Handle<JSFunction> function,
282 const ParameterCount& actual, 282 const ParameterCount& actual,
283 InvokeFlag flag, 283 InvokeFlag flag,
284 const CallWrapper& call_wrapper, 284 const CallWrapper& call_wrapper,
285 CallKind call_kind); 285 CallKind call_kind);
286 286
287 // Invoke the JavaScript function as a constructor by dispatching to
288 // the function-specific construct stub.
289 void InvokeConstruct(Register function, const ParameterCount& actual);
290
291 void InvokeConstruct(Handle<JSFunction> function,
292 const ParameterCount& actual);
293
287 // Invoke specified builtin JavaScript function. Adds an entry to 294 // Invoke specified builtin JavaScript function. Adds an entry to
288 // the unresolved list if the name does not resolve. 295 // the unresolved list if the name does not resolve.
289 void InvokeBuiltin(Builtins::JavaScript id, 296 void InvokeBuiltin(Builtins::JavaScript id,
290 InvokeFlag flag, 297 InvokeFlag flag,
291 const CallWrapper& call_wrapper = NullCallWrapper()); 298 const CallWrapper& call_wrapper = NullCallWrapper());
292 299
293 // Store the function for the given builtin in the target register. 300 // Store the function for the given builtin in the target register.
294 void GetBuiltinFunction(Register target, Builtins::JavaScript id); 301 void GetBuiltinFunction(Register target, Builtins::JavaScript id);
295 302
296 // Store the code object for the given builtin in the target register. 303 // Store the code object for the given builtin in the target register.
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 } \ 934 } \
928 masm-> 935 masm->
929 #else 936 #else
930 #define ACCESS_MASM(masm) masm-> 937 #define ACCESS_MASM(masm) masm->
931 #endif 938 #endif
932 939
933 940
934 } } // namespace v8::internal 941 } } // namespace v8::internal
935 942
936 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 943 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698