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

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

Issue 6771052: Fix non-ia32 build. (Closed)
Patch Set: lint fix Created 9 years, 8 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
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/x64/macro-assembler-x64.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 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 SmiIndex(Register index_register, ScaleFactor scale) 67 SmiIndex(Register index_register, ScaleFactor scale)
68 : reg(index_register), 68 : reg(index_register),
69 scale(scale) {} 69 scale(scale) {}
70 Register reg; 70 Register reg;
71 ScaleFactor scale; 71 ScaleFactor scale;
72 }; 72 };
73 73
74 // MacroAssembler implements a collection of frequently used macros. 74 // MacroAssembler implements a collection of frequently used macros.
75 class MacroAssembler: public Assembler { 75 class MacroAssembler: public Assembler {
76 public: 76 public:
77 MacroAssembler(void* buffer, int size); 77 // The isolate parameter can be NULL if the macro assembler should
78 // not use isolate-dependent functionality. In this case, it's the
79 // responsibility of the caller to never invoke such function on the
80 // macro assembler.
81 MacroAssembler(Isolate* isolate, void* buffer, int size);
78 82
79 // Prevent the use of the RootArray during the lifetime of this 83 // Prevent the use of the RootArray during the lifetime of this
80 // scope object. 84 // scope object.
81 class NoRootArrayScope BASE_EMBEDDED { 85 class NoRootArrayScope BASE_EMBEDDED {
82 public: 86 public:
83 explicit NoRootArrayScope(MacroAssembler* assembler) 87 explicit NoRootArrayScope(MacroAssembler* assembler)
84 : variable_(&assembler->root_array_available_), 88 : variable_(&assembler->root_array_available_),
85 old_value_(assembler->root_array_available_) { 89 old_value_(assembler->root_array_available_) {
86 assembler->root_array_available_ = false; 90 assembler->root_array_available_ = false;
87 } 91 }
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 1026
1023 // --------------------------------------------------------------------------- 1027 // ---------------------------------------------------------------------------
1024 // Utilities 1028 // Utilities
1025 1029
1026 void Ret(); 1030 void Ret();
1027 1031
1028 // Return and drop arguments from stack, where the number of arguments 1032 // Return and drop arguments from stack, where the number of arguments
1029 // may be bigger than 2^16 - 1. Requires a scratch register. 1033 // may be bigger than 2^16 - 1. Requires a scratch register.
1030 void Ret(int bytes_dropped, Register scratch); 1034 void Ret(int bytes_dropped, Register scratch);
1031 1035
1032 Handle<Object> CodeObject() { return code_object_; } 1036 Handle<Object> CodeObject() {
1037 ASSERT(!code_object_.is_null());
1038 return code_object_;
1039 }
1033 1040
1034 // Copy length bytes from source to destination. 1041 // Copy length bytes from source to destination.
1035 // Uses scratch register internally (if you have a low-eight register 1042 // Uses scratch register internally (if you have a low-eight register
1036 // free, do use it, otherwise kScratchRegister will be used). 1043 // free, do use it, otherwise kScratchRegister will be used).
1037 // The min_length is a minimum limit on the value that length will have. 1044 // The min_length is a minimum limit on the value that length will have.
1038 // The algorithm has some special cases that might be omitted if the string 1045 // The algorithm has some special cases that might be omitted if the string
1039 // is known to always be long. 1046 // is known to always be long.
1040 void CopyBytes(Register destination, 1047 void CopyBytes(Register destination,
1041 Register source, 1048 Register source,
1042 Register length, 1049 Register length,
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1968 Jump(adaptor, RelocInfo::CODE_TARGET); 1975 Jump(adaptor, RelocInfo::CODE_TARGET);
1969 } 1976 }
1970 bind(&invoke); 1977 bind(&invoke);
1971 } 1978 }
1972 } 1979 }
1973 1980
1974 1981
1975 } } // namespace v8::internal 1982 } } // namespace v8::internal
1976 1983
1977 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1984 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698