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

Side by Side Diff: src/x87/macro-assembler-x87.h

Issue 886503002: Extract LoadAccessor into a masm function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix whitespace Created 5 years, 10 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/x64/macro-assembler-x64.cc ('k') | src/x87/macro-assembler-x87.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 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 inline void JumpIfNotSmi(Register value, 478 inline void JumpIfNotSmi(Register value,
479 Label* not_smi_label, 479 Label* not_smi_label,
480 Label::Distance distance = Label::kFar) { 480 Label::Distance distance = Label::kFar) {
481 test(value, Immediate(kSmiTagMask)); 481 test(value, Immediate(kSmiTagMask));
482 j(not_zero, not_smi_label, distance); 482 j(not_zero, not_smi_label, distance);
483 } 483 }
484 484
485 void LoadInstanceDescriptors(Register map, Register descriptors); 485 void LoadInstanceDescriptors(Register map, Register descriptors);
486 void EnumLength(Register dst, Register map); 486 void EnumLength(Register dst, Register map);
487 void NumberOfOwnDescriptors(Register dst, Register map); 487 void NumberOfOwnDescriptors(Register dst, Register map);
488 void LoadAccessor(Register dst, Register holder, int accessor_index,
489 AccessorComponent accessor);
488 490
489 template<typename Field> 491 template<typename Field>
490 void DecodeField(Register reg) { 492 void DecodeField(Register reg) {
491 static const int shift = Field::kShift; 493 static const int shift = Field::kShift;
492 static const int mask = Field::kMask >> Field::kShift; 494 static const int mask = Field::kMask >> Field::kShift;
493 if (shift != 0) { 495 if (shift != 0) {
494 sar(reg, shift); 496 sar(reg, shift);
495 } 497 }
496 and_(reg, Immediate(mask)); 498 and_(reg, Immediate(mask));
497 } 499 }
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1051 } \ 1053 } \
1052 masm-> 1054 masm->
1053 #else 1055 #else
1054 #define ACCESS_MASM(masm) masm-> 1056 #define ACCESS_MASM(masm) masm->
1055 #endif 1057 #endif
1056 1058
1057 1059
1058 } } // namespace v8::internal 1060 } } // namespace v8::internal
1059 1061
1060 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1062 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698