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

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

Issue 283383006: 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: Addressing review comments 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 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 void ClampDoubleToUint8(Register result_reg, 1348 void ClampDoubleToUint8(Register result_reg,
1349 DwVfpRegister input_reg, 1349 DwVfpRegister input_reg,
1350 LowDwVfpRegister double_scratch); 1350 LowDwVfpRegister double_scratch);
1351 1351
1352 1352
1353 void LoadInstanceDescriptors(Register map, Register descriptors); 1353 void LoadInstanceDescriptors(Register map, Register descriptors);
1354 void EnumLength(Register dst, Register map); 1354 void EnumLength(Register dst, Register map);
1355 void NumberOfOwnDescriptors(Register dst, Register map); 1355 void NumberOfOwnDescriptors(Register dst, Register map);
1356 1356
1357 template<typename Field> 1357 template<typename Field>
1358 void DecodeField(Register reg) { 1358 void DecodeField(Register dst, Register src) {
1359 static const int shift = Field::kShift; 1359 static const int shift = Field::kShift;
1360 static const int mask = Field::kMask >> shift; 1360 static const int mask = Field::kMask >> shift;
1361 mov(reg, Operand(reg, LSR, shift)); 1361 static const int size = Field::kSize;
1362 and_(reg, reg, Operand(mask)); 1362 mov(dst, Operand(src, LSR, shift));
1363 if (shift + size != 32) {
1364 and_(dst, dst, Operand(mask));
1365 }
1366 }
1367
1368 template<typename Field>
1369 void DecodeField(Register reg) {
1370 DecodeField<Field>(reg, reg);
1363 } 1371 }
1364 1372
1365 // Activation support. 1373 // Activation support.
1366 void EnterFrame(StackFrame::Type type, bool load_constant_pool = false); 1374 void EnterFrame(StackFrame::Type type, bool load_constant_pool = false);
1367 // Returns the pc offset at which the frame ends. 1375 // Returns the pc offset at which the frame ends.
1368 int LeaveFrame(StackFrame::Type type); 1376 int LeaveFrame(StackFrame::Type type);
1369 1377
1370 // Expects object in r0 and returns map with validated enum cache 1378 // Expects object in r0 and returns map with validated enum cache
1371 // in r0. Assumes that any other register can be used as a scratch. 1379 // in r0. Assumes that any other register can be used as a scratch.
1372 void CheckEnumCache(Register null_value, Label* call_runtime); 1380 void CheckEnumCache(Register null_value, Label* call_runtime);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1584 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1577 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1585 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1578 #else 1586 #else
1579 #define ACCESS_MASM(masm) masm-> 1587 #define ACCESS_MASM(masm) masm->
1580 #endif 1588 #endif
1581 1589
1582 1590
1583 } } // namespace v8::internal 1591 } } // namespace v8::internal
1584 1592
1585 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1593 #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