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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.cc

Issue 1999403002: Version 5.1.281.45 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: Created 4 years, 7 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
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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 2217 matching lines...) Expand 10 before | Expand all | Expand 10 after
2228 Label* is_false, 2228 Label* is_false,
2229 Handle<String>class_name, 2229 Handle<String>class_name,
2230 Register input, 2230 Register input,
2231 Register temp, 2231 Register temp,
2232 Register temp2) { 2232 Register temp2) {
2233 DCHECK(!input.is(temp)); 2233 DCHECK(!input.is(temp));
2234 DCHECK(!input.is(temp2)); 2234 DCHECK(!input.is(temp2));
2235 DCHECK(!temp.is(temp2)); 2235 DCHECK(!temp.is(temp2));
2236 __ JumpIfSmi(input, is_false); 2236 __ JumpIfSmi(input, is_false);
2237 2237
2238 __ CmpObjectType(input, JS_FUNCTION_TYPE, temp); 2238 __ CmpObjectType(input, FIRST_FUNCTION_TYPE, temp);
2239 STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE);
2239 if (String::Equals(isolate()->factory()->Function_string(), class_name)) { 2240 if (String::Equals(isolate()->factory()->Function_string(), class_name)) {
2240 __ j(equal, is_true); 2241 __ j(above_equal, is_true);
2241 } else { 2242 } else {
2242 __ j(equal, is_false); 2243 __ j(above_equal, is_false);
2243 } 2244 }
2244 2245
2245 // Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range. 2246 // Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range.
2246 // Check if the constructor in the map is a function. 2247 // Check if the constructor in the map is a function.
2247 __ GetMapConstructor(temp, temp, temp2); 2248 __ GetMapConstructor(temp, temp, temp2);
2248 // Objects with a non-function constructor have class 'Object'. 2249 // Objects with a non-function constructor have class 'Object'.
2249 __ CmpInstanceType(temp2, JS_FUNCTION_TYPE); 2250 __ CmpInstanceType(temp2, JS_FUNCTION_TYPE);
2250 if (String::Equals(class_name, isolate()->factory()->Object_string())) { 2251 if (String::Equals(class_name, isolate()->factory()->Object_string())) {
2251 __ j(not_equal, is_true); 2252 __ j(not_equal, is_true);
2252 } else { 2253 } else {
(...skipping 3027 matching lines...) Expand 10 before | Expand all | Expand 10 after
5280 __ bind(deferred->exit()); 5281 __ bind(deferred->exit());
5281 __ bind(&done); 5282 __ bind(&done);
5282 } 5283 }
5283 5284
5284 #undef __ 5285 #undef __
5285 5286
5286 } // namespace internal 5287 } // namespace internal
5287 } // namespace v8 5288 } // namespace v8
5288 5289
5289 #endif // V8_TARGET_ARCH_IA32 5290 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698