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

Side by Side Diff: src/arm64/assembler-arm64.h

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_ASSEMBLER_ARM64_H_ 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_H_
6 #define V8_ARM64_ASSEMBLER_ARM64_H_ 6 #define V8_ARM64_ASSEMBLER_ARM64_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
11 11
12 #include "src/arm64/instructions-arm64.h" 12 #include "src/arm64/instructions-arm64.h"
13 #include "src/assembler.h" 13 #include "src/assembler.h"
14 #include "src/cpu.h"
15 #include "src/globals.h" 14 #include "src/globals.h"
16 #include "src/serialize.h" 15 #include "src/serialize.h"
17 #include "src/utils.h" 16 #include "src/utils.h"
18 17
19 18
20 namespace v8 { 19 namespace v8 {
21 namespace internal { 20 namespace internal {
22 21
23 22
24 // ----------------------------------------------------------------------------- 23 // -----------------------------------------------------------------------------
(...skipping 2252 matching lines...) Expand 10 before | Expand all | Expand 10 after
2277 ~PatchingAssembler() { 2276 ~PatchingAssembler() {
2278 // Const pool should still be blocked. 2277 // Const pool should still be blocked.
2279 ASSERT(is_const_pool_blocked()); 2278 ASSERT(is_const_pool_blocked());
2280 EndBlockPools(); 2279 EndBlockPools();
2281 // Verify we have generated the number of instruction we expected. 2280 // Verify we have generated the number of instruction we expected.
2282 ASSERT((pc_offset() + kGap) == buffer_size_); 2281 ASSERT((pc_offset() + kGap) == buffer_size_);
2283 // Verify no relocation information has been emitted. 2282 // Verify no relocation information has been emitted.
2284 ASSERT(IsConstPoolEmpty()); 2283 ASSERT(IsConstPoolEmpty());
2285 // Flush the Instruction cache. 2284 // Flush the Instruction cache.
2286 size_t length = buffer_size_ - kGap; 2285 size_t length = buffer_size_ - kGap;
2287 CPU::FlushICache(buffer_, length); 2286 CpuFeatures::FlushICache(buffer_, length);
2288 } 2287 }
2289 2288
2290 static const int kMovInt64NInstrs = 4; 2289 static const int kMovInt64NInstrs = 4;
2291 void MovInt64(const Register& rd, int64_t imm); 2290 void MovInt64(const Register& rd, int64_t imm);
2292 2291
2293 // See definition of PatchAdrFar() for details. 2292 // See definition of PatchAdrFar() for details.
2294 static const int kAdrFarPatchableNNops = kMovInt64NInstrs - 1; 2293 static const int kAdrFarPatchableNNops = kMovInt64NInstrs - 1;
2295 static const int kAdrFarPatchableNInstrs = kAdrFarPatchableNNops + 3; 2294 static const int kAdrFarPatchableNInstrs = kAdrFarPatchableNNops + 3;
2296 void PatchAdrFar(Instruction* target); 2295 void PatchAdrFar(Instruction* target);
2297 }; 2296 };
2298 2297
2299 2298
2300 class EnsureSpace BASE_EMBEDDED { 2299 class EnsureSpace BASE_EMBEDDED {
2301 public: 2300 public:
2302 explicit EnsureSpace(Assembler* assembler) { 2301 explicit EnsureSpace(Assembler* assembler) {
2303 assembler->CheckBufferSpace(); 2302 assembler->CheckBufferSpace();
2304 } 2303 }
2305 }; 2304 };
2306 2305
2307 } } // namespace v8::internal 2306 } } // namespace v8::internal
2308 2307
2309 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ 2308 #endif // V8_ARM64_ASSEMBLER_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | src/arm64/assembler-arm64.cc » ('j') | src/base/cpu.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698