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

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

Issue 8680013: Remove the static qualifier from functions in header files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Restored static const references on ARM and MIPS. Created 9 years, 1 month 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 21 matching lines...) Expand all
32 #include "frames.h" 32 #include "frames.h"
33 #include "v8globals.h" 33 #include "v8globals.h"
34 34
35 namespace v8 { 35 namespace v8 {
36 namespace internal { 36 namespace internal {
37 37
38 // ---------------------------------------------------------------------------- 38 // ----------------------------------------------------------------------------
39 // Static helper functions 39 // Static helper functions
40 40
41 // Generate a MemOperand for loading a field from an object. 41 // Generate a MemOperand for loading a field from an object.
42 static inline MemOperand FieldMemOperand(Register object, int offset) { 42 inline MemOperand FieldMemOperand(Register object, int offset) {
43 return MemOperand(object, offset - kHeapObjectTag); 43 return MemOperand(object, offset - kHeapObjectTag);
44 } 44 }
45 45
46 46
47 static inline Operand SmiUntagOperand(Register object) { 47 inline Operand SmiUntagOperand(Register object) {
48 return Operand(object, ASR, kSmiTagSize); 48 return Operand(object, ASR, kSmiTagSize);
49 } 49 }
50 50
51 51
52 52
53 // Give alias names to registers 53 // Give alias names to registers
54 const Register cp = { 8 }; // JavaScript context pointer 54 const Register cp = { 8 }; // JavaScript context pointer
55 const Register roots = { 10 }; // Roots array pointer. 55 const Register roots = { 10 }; // Roots array pointer.
56 56
57 // Flags used for the AllocateInNewSpace functions. 57 // Flags used for the AllocateInNewSpace functions.
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 int instructions_; // Number of instructions of the expected patch size. 1293 int instructions_; // Number of instructions of the expected patch size.
1294 int size_; // Number of bytes of the expected patch size. 1294 int size_; // Number of bytes of the expected patch size.
1295 MacroAssembler masm_; // Macro assembler used to generate the code. 1295 MacroAssembler masm_; // Macro assembler used to generate the code.
1296 }; 1296 };
1297 #endif // ENABLE_DEBUGGER_SUPPORT 1297 #endif // ENABLE_DEBUGGER_SUPPORT
1298 1298
1299 1299
1300 // ----------------------------------------------------------------------------- 1300 // -----------------------------------------------------------------------------
1301 // Static helper functions. 1301 // Static helper functions.
1302 1302
1303 static MemOperand ContextOperand(Register context, int index) { 1303 inline MemOperand ContextOperand(Register context, int index) {
1304 return MemOperand(context, Context::SlotOffset(index)); 1304 return MemOperand(context, Context::SlotOffset(index));
1305 } 1305 }
1306 1306
1307 1307
1308 static inline MemOperand GlobalObjectOperand() { 1308 inline MemOperand GlobalObjectOperand() {
1309 return ContextOperand(cp, Context::GLOBAL_INDEX); 1309 return ContextOperand(cp, Context::GLOBAL_INDEX);
1310 } 1310 }
1311 1311
1312 1312
1313 #ifdef GENERATED_CODE_COVERAGE 1313 #ifdef GENERATED_CODE_COVERAGE
1314 #define CODE_COVERAGE_STRINGIFY(x) #x 1314 #define CODE_COVERAGE_STRINGIFY(x) #x
1315 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1315 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1316 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1316 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1317 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1317 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1318 #else 1318 #else
1319 #define ACCESS_MASM(masm) masm-> 1319 #define ACCESS_MASM(masm) masm->
1320 #endif 1320 #endif
1321 1321
1322 1322
1323 } } // namespace v8::internal 1323 } } // namespace v8::internal
1324 1324
1325 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1325 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/frames-arm.h ('k') | src/assembler.h » ('j') | src/conversions-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698