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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 14576005: Adapt hydrogen-based Array constructor to also support InternalArray and function call (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Adapt to bugfix for 244461 Created 7 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/isolate.cc ('k') | src/type-info.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5095 matching lines...) Expand 10 before | Expand all | Expand 10 after
5106 } 5106 }
5107 5107
5108 // Check that the function is really a JavaScript function. 5108 // Check that the function is really a JavaScript function.
5109 // a1: pushed function (to be verified) 5109 // a1: pushed function (to be verified)
5110 __ JumpIfSmi(a1, &non_function); 5110 __ JumpIfSmi(a1, &non_function);
5111 // Get the map of the function object. 5111 // Get the map of the function object.
5112 __ GetObjectType(a1, a3, a3); 5112 __ GetObjectType(a1, a3, a3);
5113 __ Branch(&slow, ne, a3, Operand(JS_FUNCTION_TYPE)); 5113 __ Branch(&slow, ne, a3, Operand(JS_FUNCTION_TYPE));
5114 5114
5115 if (RecordCallTarget()) { 5115 if (RecordCallTarget()) {
5116 GenerateRecordCallTargetNoArray(masm); 5116 if (FLAG_optimize_constructed_arrays) {
5117 GenerateRecordCallTarget(masm);
5118 } else {
5119 GenerateRecordCallTargetNoArray(masm);
5120 }
5117 } 5121 }
5118 5122
5119 // Fast-case: Invoke the function now. 5123 // Fast-case: Invoke the function now.
5120 // a1: pushed function 5124 // a1: pushed function
5121 ParameterCount actual(argc_); 5125 ParameterCount actual(argc_);
5122 5126
5123 if (ReceiverMightBeImplicit()) { 5127 if (ReceiverMightBeImplicit()) {
5124 Label call_as_function; 5128 Label call_as_function;
5125 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); 5129 __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
5126 __ Branch(&call_as_function, eq, t0, Operand(at)); 5130 __ Branch(&call_as_function, eq, t0, Operand(at));
(...skipping 2614 matching lines...) Expand 10 before | Expand all | Expand 10 after
7741 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 7745 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
7742 } 7746 }
7743 } 7747 }
7744 7748
7745 7749
7746 #undef __ 7750 #undef __
7747 7751
7748 } } // namespace v8::internal 7752 } } // namespace v8::internal
7749 7753
7750 #endif // V8_TARGET_ARCH_MIPS 7754 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698