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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 1306303005: Revert of [es5] Class of object is "Function" if object has [[Call]]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/mips/macro-assembler-mips.h ('k') | src/mips64/lithium-codegen-mips64.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 4196 matching lines...) Expand 10 before | Expand all | Expand 10 after
4207 void MacroAssembler::InvokeFunction(Handle<JSFunction> function, 4207 void MacroAssembler::InvokeFunction(Handle<JSFunction> function,
4208 const ParameterCount& expected, 4208 const ParameterCount& expected,
4209 const ParameterCount& actual, 4209 const ParameterCount& actual,
4210 InvokeFlag flag, 4210 InvokeFlag flag,
4211 const CallWrapper& call_wrapper) { 4211 const CallWrapper& call_wrapper) {
4212 li(a1, function); 4212 li(a1, function);
4213 InvokeFunction(a1, expected, actual, flag, call_wrapper); 4213 InvokeFunction(a1, expected, actual, flag, call_wrapper);
4214 } 4214 }
4215 4215
4216 4216
4217 void MacroAssembler::IsObjectJSObjectType(Register heap_object,
4218 Register map,
4219 Register scratch,
4220 Label* fail) {
4221 lw(map, FieldMemOperand(heap_object, HeapObject::kMapOffset));
4222 IsInstanceJSObjectType(map, scratch, fail);
4223 }
4224
4225
4226 void MacroAssembler::IsInstanceJSObjectType(Register map,
4227 Register scratch,
4228 Label* fail) {
4229 lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
4230 Branch(fail, lt, scratch, Operand(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE));
4231 Branch(fail, gt, scratch, Operand(LAST_NONCALLABLE_SPEC_OBJECT_TYPE));
4232 }
4233
4234
4217 void MacroAssembler::IsObjectJSStringType(Register object, 4235 void MacroAssembler::IsObjectJSStringType(Register object,
4218 Register scratch, 4236 Register scratch,
4219 Label* fail) { 4237 Label* fail) {
4220 DCHECK(kNotStringTag != 0); 4238 DCHECK(kNotStringTag != 0);
4221 4239
4222 lw(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); 4240 lw(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
4223 lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); 4241 lbu(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
4224 And(scratch, scratch, Operand(kIsNotStringMask)); 4242 And(scratch, scratch, Operand(kIsNotStringMask));
4225 Branch(fail, ne, scratch, Operand(zero_reg)); 4243 Branch(fail, ne, scratch, Operand(zero_reg));
4226 } 4244 }
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after
6004 if (mag.shift > 0) sra(result, result, mag.shift); 6022 if (mag.shift > 0) sra(result, result, mag.shift);
6005 srl(at, dividend, 31); 6023 srl(at, dividend, 31);
6006 Addu(result, result, Operand(at)); 6024 Addu(result, result, Operand(at));
6007 } 6025 }
6008 6026
6009 6027
6010 } // namespace internal 6028 } // namespace internal
6011 } // namespace v8 6029 } // namespace v8
6012 6030
6013 #endif // V8_TARGET_ARCH_MIPS 6031 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698