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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 559913002: Rename ascii to one-byte where applicable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after
2714 FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); 2714 FIRST_NONCALLABLE_SPEC_OBJECT_TYPE));
2715 __ b(gt, is_false); 2715 __ b(gt, is_false);
2716 } 2716 }
2717 2717
2718 // Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range. 2718 // Now we are in the FIRST-LAST_NONCALLABLE_SPEC_OBJECT_TYPE range.
2719 // Check if the constructor in the map is a function. 2719 // Check if the constructor in the map is a function.
2720 __ ldr(temp, FieldMemOperand(temp, Map::kConstructorOffset)); 2720 __ ldr(temp, FieldMemOperand(temp, Map::kConstructorOffset));
2721 2721
2722 // Objects with a non-function constructor have class 'Object'. 2722 // Objects with a non-function constructor have class 'Object'.
2723 __ CompareObjectType(temp, temp2, temp2, JS_FUNCTION_TYPE); 2723 __ CompareObjectType(temp, temp2, temp2, JS_FUNCTION_TYPE);
2724 if (class_name->IsOneByteEqualTo(STATIC_ASCII_VECTOR("Object"))) { 2724 if (class_name->IsOneByteEqualTo(STATIC_CHAR_VECTOR("Object"))) {
2725 __ b(ne, is_true); 2725 __ b(ne, is_true);
2726 } else { 2726 } else {
2727 __ b(ne, is_false); 2727 __ b(ne, is_false);
2728 } 2728 }
2729 2729
2730 // temp now contains the constructor function. Grab the 2730 // temp now contains the constructor function. Grab the
2731 // instance class name from there. 2731 // instance class name from there.
2732 __ ldr(temp, FieldMemOperand(temp, JSFunction::kSharedFunctionInfoOffset)); 2732 __ ldr(temp, FieldMemOperand(temp, JSFunction::kSharedFunctionInfoOffset));
2733 __ ldr(temp, FieldMemOperand(temp, 2733 __ ldr(temp, FieldMemOperand(temp,
2734 SharedFunctionInfo::kInstanceClassNameOffset)); 2734 SharedFunctionInfo::kInstanceClassNameOffset));
(...skipping 3174 matching lines...) Expand 10 before | Expand all | Expand 10 after
5909 __ Push(scope_info); 5909 __ Push(scope_info);
5910 __ push(ToRegister(instr->function())); 5910 __ push(ToRegister(instr->function()));
5911 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5911 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5912 RecordSafepoint(Safepoint::kNoLazyDeopt); 5912 RecordSafepoint(Safepoint::kNoLazyDeopt);
5913 } 5913 }
5914 5914
5915 5915
5916 #undef __ 5916 #undef __
5917 5917
5918 } } // namespace v8::internal 5918 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | src/jsregexp.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698