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/a64/assembler-a64.h

Issue 206213002: A64: clean up pending reloc info if code generation was aborted. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/assembler.h » ('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 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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 // owned by the assembler and deallocated upon destruction of the assembler. 736 // owned by the assembler and deallocated upon destruction of the assembler.
737 // 737 //
738 // If the provided buffer is not NULL, the assembler uses the provided buffer 738 // If the provided buffer is not NULL, the assembler uses the provided buffer
739 // for code generation and assumes its size to be buffer_size. If the buffer 739 // for code generation and assumes its size to be buffer_size. If the buffer
740 // is too small, a fatal error occurs. No deallocation of the buffer is done 740 // is too small, a fatal error occurs. No deallocation of the buffer is done
741 // upon destruction of the assembler. 741 // upon destruction of the assembler.
742 Assembler(Isolate* arg_isolate, void* buffer, int buffer_size); 742 Assembler(Isolate* arg_isolate, void* buffer, int buffer_size);
743 743
744 virtual ~Assembler(); 744 virtual ~Assembler();
745 745
746 virtual void AbortedCodeGeneration() {
747 num_pending_reloc_info_ = 0;
748 }
749
746 // System functions --------------------------------------------------------- 750 // System functions ---------------------------------------------------------
747 // Start generating code from the beginning of the buffer, discarding any code 751 // Start generating code from the beginning of the buffer, discarding any code
748 // and data that has already been emitted into the buffer. 752 // and data that has already been emitted into the buffer.
749 // 753 //
750 // In order to avoid any accidental transfer of state, Reset ASSERTs that the 754 // In order to avoid any accidental transfer of state, Reset ASSERTs that the
751 // constant pool is not blocked. 755 // constant pool is not blocked.
752 void Reset(); 756 void Reset();
753 757
754 // GetCode emits any pending (non-emitted) code and fills the descriptor 758 // GetCode emits any pending (non-emitted) code and fills the descriptor
755 // desc. GetCode() is idempotent; it returns the same result if no other 759 // desc. GetCode() is idempotent; it returns the same result if no other
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 class EnsureSpace BASE_EMBEDDED { 2214 class EnsureSpace BASE_EMBEDDED {
2211 public: 2215 public:
2212 explicit EnsureSpace(Assembler* assembler) { 2216 explicit EnsureSpace(Assembler* assembler) {
2213 assembler->CheckBuffer(); 2217 assembler->CheckBuffer();
2214 } 2218 }
2215 }; 2219 };
2216 2220
2217 } } // namespace v8::internal 2221 } } // namespace v8::internal
2218 2222
2219 #endif // V8_A64_ASSEMBLER_A64_H_ 2223 #endif // V8_A64_ASSEMBLER_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698