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

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

Issue 10909007: Sharing of descriptor arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 8 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
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 1266
1267 void ClampDoubleToUint8(Register result_reg, 1267 void ClampDoubleToUint8(Register result_reg,
1268 DoubleRegister input_reg, 1268 DoubleRegister input_reg,
1269 DoubleRegister temp_double_reg); 1269 DoubleRegister temp_double_reg);
1270 1270
1271 1271
1272 void LoadInstanceDescriptors(Register map, 1272 void LoadInstanceDescriptors(Register map,
1273 Register descriptors, 1273 Register descriptors,
1274 Register scratch); 1274 Register scratch);
1275 void EnumLength(Register dst, Register map); 1275 void EnumLength(Register dst, Register map);
1276 void NumberOfOwnDescriptors(Register dst, Register map);
1277
1278 template<typename Field>
1279 void DecodeField(Register reg) {
1280 static const int shift = Field::kShift;
1281 static const int mask = (Field::kMask >> shift) << kSmiTagSize;
1282 mov(reg, Operand(reg, LSR, shift));
1283 and_(reg, reg, Operand(mask));
1284 }
1276 1285
1277 // Activation support. 1286 // Activation support.
1278 void EnterFrame(StackFrame::Type type); 1287 void EnterFrame(StackFrame::Type type);
1279 void LeaveFrame(StackFrame::Type type); 1288 void LeaveFrame(StackFrame::Type type);
1280 1289
1281 // Expects object in r0 and returns map with validated enum cache 1290 // Expects object in r0 and returns map with validated enum cache
1282 // in r0. Assumes that any other register can be used as a scratch. 1291 // in r0. Assumes that any other register can be used as a scratch.
1283 void CheckEnumCache(Register null_value, Label* call_runtime); 1292 void CheckEnumCache(Register null_value, Label* call_runtime);
1284 1293
1285 private: 1294 private:
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1390 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1399 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1391 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1400 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1392 #else 1401 #else
1393 #define ACCESS_MASM(masm) masm-> 1402 #define ACCESS_MASM(masm) masm->
1394 #endif 1403 #endif
1395 1404
1396 1405
1397 } } // namespace v8::internal 1406 } } // namespace v8::internal
1398 1407
1399 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1408 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698