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

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

Issue 164793003: A64: Use a scope utility to allocate scratch registers. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove Include() and Release(). Created 6 years, 10 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 | « no previous file | src/a64/code-stubs-a64.cc » ('j') | src/a64/macro-assembler-a64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 CPURegister::RegisterType type() const { 454 CPURegister::RegisterType type() const {
455 ASSERT(IsValid()); 455 ASSERT(IsValid());
456 return type_; 456 return type_;
457 } 457 }
458 458
459 RegList list() const { 459 RegList list() const {
460 ASSERT(IsValid()); 460 ASSERT(IsValid());
461 return list_; 461 return list_;
462 } 462 }
463 463
464 inline void set_list(RegList new_list) {
465 ASSERT(IsValid());
466 list_ = new_list;
467 }
468
464 // Combine another CPURegList into this one. Registers that already exist in 469 // Combine another CPURegList into this one. Registers that already exist in
465 // this list are left unchanged. The type and size of the registers in the 470 // this list are left unchanged. The type and size of the registers in the
466 // 'other' list must match those in this list. 471 // 'other' list must match those in this list.
467 void Combine(const CPURegList& other); 472 void Combine(const CPURegList& other);
468 473
469 // Remove every register in the other CPURegList from this one. Registers that 474 // Remove every register in the other CPURegList from this one. Registers that
470 // do not exist in this list are ignored. The type and size of the registers 475 // do not exist in this list are ignored. The type and size of the registers
471 // in the 'other' list must match those in this list. 476 // in the 'other' list must match those in this list.
472 void Remove(const CPURegList& other); 477 void Remove(const CPURegList& other);
473 478
(...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 class EnsureSpace BASE_EMBEDDED { 2081 class EnsureSpace BASE_EMBEDDED {
2077 public: 2082 public:
2078 explicit EnsureSpace(Assembler* assembler) { 2083 explicit EnsureSpace(Assembler* assembler) {
2079 assembler->CheckBuffer(); 2084 assembler->CheckBuffer();
2080 } 2085 }
2081 }; 2086 };
2082 2087
2083 } } // namespace v8::internal 2088 } } // namespace v8::internal
2084 2089
2085 #endif // V8_A64_ASSEMBLER_A64_H_ 2090 #endif // V8_A64_ASSEMBLER_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/code-stubs-a64.cc » ('j') | src/a64/macro-assembler-a64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698