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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.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
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/full-codegen/arm/full-codegen-arm.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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 2498 matching lines...) Expand 10 before | Expand all | Expand 10 after
2509 Label* is_false, 2509 Label* is_false,
2510 Handle<String>class_name, 2510 Handle<String>class_name,
2511 Register input, 2511 Register input,
2512 Register temp, 2512 Register temp,
2513 Register temp2) { 2513 Register temp2) {
2514 DCHECK(!input.is(temp)); 2514 DCHECK(!input.is(temp));
2515 DCHECK(!input.is(temp2)); 2515 DCHECK(!input.is(temp2));
2516 DCHECK(!temp.is(temp2)); 2516 DCHECK(!temp.is(temp2));
2517 __ JumpIfSmi(input, is_false); 2517 __ JumpIfSmi(input, is_false);
2518 2518
2519 __ CmpObjectType(input, JS_FUNCTION_TYPE, temp); 2519 __ CmpObjectType(input, FIRST_FUNCTION_TYPE, temp);
2520 STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE);
2520 if (String::Equals(isolate()->factory()->Function_string(), class_name)) { 2521 if (String::Equals(isolate()->factory()->Function_string(), class_name)) {
2521 __ j(equal, is_true); 2522 __ j(above_equal, is_true);
2522 } else { 2523 } else {
2523 __ j(equal, is_false); 2524 __ j(above_equal, is_false);
2524 } 2525 }
2525 2526
2526 // Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range. 2527 // Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range.
2527 // Check if the constructor in the map is a function. 2528 // Check if the constructor in the map is a function.
2528 __ GetMapConstructor(temp, temp, temp2); 2529 __ GetMapConstructor(temp, temp, temp2);
2529 // Objects with a non-function constructor have class 'Object'. 2530 // Objects with a non-function constructor have class 'Object'.
2530 __ CmpInstanceType(temp2, JS_FUNCTION_TYPE); 2531 __ CmpInstanceType(temp2, JS_FUNCTION_TYPE);
2531 if (String::Equals(class_name, isolate()->factory()->Object_string())) { 2532 if (String::Equals(class_name, isolate()->factory()->Object_string())) {
2532 __ j(not_equal, is_true); 2533 __ j(not_equal, is_true);
2533 } else { 2534 } else {
(...skipping 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after
5825 __ bind(deferred->exit()); 5826 __ bind(deferred->exit());
5826 __ bind(&done); 5827 __ bind(&done);
5827 } 5828 }
5828 5829
5829 #undef __ 5830 #undef __
5830 5831
5831 } // namespace internal 5832 } // namespace internal
5832 } // namespace v8 5833 } // namespace v8
5833 5834
5834 #endif // V8_TARGET_ARCH_X87 5835 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-codegen-x64.cc ('k') | src/full-codegen/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698