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

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

Issue 295933012: Revert "Inobject slack tracking is done on a per-closure basis instead of per-shared info basis." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm64/builtins-arm64.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_ARM_MACRO_ASSEMBLER_ARM_H_ 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_
7 7
8 #include "assembler.h" 8 #include "assembler.h"
9 #include "frames.h" 9 #include "frames.h"
10 #include "v8globals.h" 10 #include "v8globals.h"
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 void ClampDoubleToUint8(Register result_reg, 1349 void ClampDoubleToUint8(Register result_reg,
1350 DwVfpRegister input_reg, 1350 DwVfpRegister input_reg,
1351 LowDwVfpRegister double_scratch); 1351 LowDwVfpRegister double_scratch);
1352 1352
1353 1353
1354 void LoadInstanceDescriptors(Register map, Register descriptors); 1354 void LoadInstanceDescriptors(Register map, Register descriptors);
1355 void EnumLength(Register dst, Register map); 1355 void EnumLength(Register dst, Register map);
1356 void NumberOfOwnDescriptors(Register dst, Register map); 1356 void NumberOfOwnDescriptors(Register dst, Register map);
1357 1357
1358 template<typename Field> 1358 template<typename Field>
1359 void DecodeField(Register dst, Register src) { 1359 void DecodeField(Register reg) {
1360 static const int shift = Field::kShift; 1360 static const int shift = Field::kShift;
1361 static const int mask = Field::kMask >> shift; 1361 static const int mask = Field::kMask >> shift;
1362 static const int size = Field::kSize; 1362 mov(reg, Operand(reg, LSR, shift));
1363 mov(dst, Operand(src, LSR, shift)); 1363 and_(reg, reg, Operand(mask));
1364 if (shift + size != 32) {
1365 and_(dst, dst, Operand(mask));
1366 }
1367 }
1368
1369 template<typename Field>
1370 void DecodeField(Register reg) {
1371 DecodeField<Field>(reg, reg);
1372 } 1364 }
1373 1365
1374 // Activation support. 1366 // Activation support.
1375 void EnterFrame(StackFrame::Type type, bool load_constant_pool = false); 1367 void EnterFrame(StackFrame::Type type, bool load_constant_pool = false);
1376 // Returns the pc offset at which the frame ends. 1368 // Returns the pc offset at which the frame ends.
1377 int LeaveFrame(StackFrame::Type type); 1369 int LeaveFrame(StackFrame::Type type);
1378 1370
1379 // Expects object in r0 and returns map with validated enum cache 1371 // Expects object in r0 and returns map with validated enum cache
1380 // in r0. Assumes that any other register can be used as a scratch. 1372 // in r0. Assumes that any other register can be used as a scratch.
1381 void CheckEnumCache(Register null_value, Label* call_runtime); 1373 void CheckEnumCache(Register null_value, Label* call_runtime);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1577 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1586 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1578 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1587 #else 1579 #else
1588 #define ACCESS_MASM(masm) masm-> 1580 #define ACCESS_MASM(masm) masm->
1589 #endif 1581 #endif
1590 1582
1591 1583
1592 } } // namespace v8::internal 1584 } } // namespace v8::internal
1593 1585
1594 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1586 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698