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

Side by Side Diff: src/x64/builtins-x64.cc

Issue 132063: Allow functions to have custom construct stubs that are called... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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/runtime.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 164 }
165 165
166 void Builtins::Generate_FunctionCall(MacroAssembler* masm) { 166 void Builtins::Generate_FunctionCall(MacroAssembler* masm) {
167 masm->int3(); // UNIMPLEMENTED. 167 masm->int3(); // UNIMPLEMENTED.
168 } 168 }
169 169
170 void Builtins::Generate_JSConstructCall(MacroAssembler* masm) { 170 void Builtins::Generate_JSConstructCall(MacroAssembler* masm) {
171 masm->int3(); // UNIMPLEMENTED. 171 masm->int3(); // UNIMPLEMENTED.
172 } 172 }
173 173
174 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) {
175 masm->int3(); // UNIMPLEMENTED.
176 }
177
174 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, 178 static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm,
175 bool is_construct) { 179 bool is_construct) {
176 // Expects five C++ function parameters. 180 // Expects five C++ function parameters.
177 // - Address entry (ignored) 181 // - Address entry (ignored)
178 // - JSFunction* function ( 182 // - JSFunction* function (
179 // - Object* receiver 183 // - Object* receiver
180 // - int argc 184 // - int argc
181 // - Object*** argv 185 // - Object*** argv
182 // (see Handle::Invoke in execution.cc). 186 // (see Handle::Invoke in execution.cc).
183 187
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) { 290 void Builtins::Generate_JSEntryTrampoline(MacroAssembler* masm) {
287 Generate_JSEntryTrampolineHelper(masm, false); 291 Generate_JSEntryTrampolineHelper(masm, false);
288 } 292 }
289 293
290 294
291 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) { 295 void Builtins::Generate_JSConstructEntryTrampoline(MacroAssembler* masm) {
292 Generate_JSEntryTrampolineHelper(masm, true); 296 Generate_JSEntryTrampolineHelper(masm, true);
293 } 297 }
294 298
295 } } // namespace v8::internal 299 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698