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

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

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-x64.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 // The isolate parameter can be NULL if the macro assembler should 77 MacroAssembler(void* buffer, int size);
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);
82 78
83 // Prevent the use of the RootArray during the lifetime of this 79 // Prevent the use of the RootArray during the lifetime of this
84 // scope object. 80 // scope object.
85 class NoRootArrayScope BASE_EMBEDDED { 81 class NoRootArrayScope BASE_EMBEDDED {
86 public: 82 public:
87 explicit NoRootArrayScope(MacroAssembler* assembler) 83 explicit NoRootArrayScope(MacroAssembler* assembler)
88 : variable_(&assembler->root_array_available_), 84 : variable_(&assembler->root_array_available_),
89 old_value_(assembler->root_array_available_) { 85 old_value_(assembler->root_array_available_) {
90 assembler->root_array_available_ = false; 86 assembler->root_array_available_ = false;
91 } 87 }
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 1022
1027 // --------------------------------------------------------------------------- 1023 // ---------------------------------------------------------------------------
1028 // Utilities 1024 // Utilities
1029 1025
1030 void Ret(); 1026 void Ret();
1031 1027
1032 // Return and drop arguments from stack, where the number of arguments 1028 // Return and drop arguments from stack, where the number of arguments
1033 // may be bigger than 2^16 - 1. Requires a scratch register. 1029 // may be bigger than 2^16 - 1. Requires a scratch register.
1034 void Ret(int bytes_dropped, Register scratch); 1030 void Ret(int bytes_dropped, Register scratch);
1035 1031
1036 Handle<Object> CodeObject() { 1032 Handle<Object> CodeObject() { return code_object_; }
1037 ASSERT(!code_object_.is_null());
1038 return code_object_;
1039 }
1040 1033
1041 // Copy length bytes from source to destination. 1034 // Copy length bytes from source to destination.
1042 // Uses scratch register internally (if you have a low-eight register 1035 // Uses scratch register internally (if you have a low-eight register
1043 // free, do use it, otherwise kScratchRegister will be used). 1036 // free, do use it, otherwise kScratchRegister will be used).
1044 // The min_length is a minimum limit on the value that length will have. 1037 // The min_length is a minimum limit on the value that length will have.
1045 // The algorithm has some special cases that might be omitted if the string 1038 // The algorithm has some special cases that might be omitted if the string
1046 // is known to always be long. 1039 // is known to always be long.
1047 void CopyBytes(Register destination, 1040 void CopyBytes(Register destination,
1048 Register source, 1041 Register source,
1049 Register length, 1042 Register length,
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1975 Jump(adaptor, RelocInfo::CODE_TARGET); 1968 Jump(adaptor, RelocInfo::CODE_TARGET);
1976 } 1969 }
1977 bind(&invoke); 1970 bind(&invoke);
1978 } 1971 }
1979 } 1972 }
1980 1973
1981 1974
1982 } } // namespace v8::internal 1975 } } // namespace v8::internal
1983 1976
1984 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1977 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698