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

Side by Side Diff: src/hydrogen-instructions.h

Issue 141703018: Turn RegExpConstructResultStub into a HydrogenCodeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove dead code from LCallStub. 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 6057 matching lines...) Expand 10 before | Expand all | Expand 10 after
6068 static HObjectAccess ForJSArrayBufferViewByteOffset() { 6068 static HObjectAccess ForJSArrayBufferViewByteOffset() {
6069 return HObjectAccess::ForJSObjectOffset( 6069 return HObjectAccess::ForJSObjectOffset(
6070 JSArrayBufferView::kByteOffsetOffset); 6070 JSArrayBufferView::kByteOffsetOffset);
6071 } 6071 }
6072 6072
6073 static HObjectAccess ForJSArrayBufferViewByteLength() { 6073 static HObjectAccess ForJSArrayBufferViewByteLength() {
6074 return HObjectAccess::ForJSObjectOffset( 6074 return HObjectAccess::ForJSObjectOffset(
6075 JSArrayBufferView::kByteLengthOffset); 6075 JSArrayBufferView::kByteLengthOffset);
6076 } 6076 }
6077 6077
6078 static HObjectAccess ForGlobalObjectNativeContext() {
6079 return HObjectAccess(kInobject, GlobalObject::kNativeContextOffset);
6080 }
6081
6078 void PrintTo(StringStream* stream); 6082 void PrintTo(StringStream* stream);
6079 6083
6080 inline bool Equals(HObjectAccess that) const { 6084 inline bool Equals(HObjectAccess that) const {
6081 return value_ == that.value_; // portion and offset must match 6085 return value_ == that.value_; // portion and offset must match
6082 } 6086 }
6083 6087
6084 protected: 6088 protected:
6085 void SetGVNFlags(HValue *instr, bool is_store); 6089 void SetGVNFlags(HValue *instr, bool is_store);
6086 6090
6087 private: 6091 private:
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after
7529 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7533 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7530 }; 7534 };
7531 7535
7532 7536
7533 #undef DECLARE_INSTRUCTION 7537 #undef DECLARE_INSTRUCTION
7534 #undef DECLARE_CONCRETE_INSTRUCTION 7538 #undef DECLARE_CONCRETE_INSTRUCTION
7535 7539
7536 } } // namespace v8::internal 7540 } } // namespace v8::internal
7537 7541
7538 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7542 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« src/hydrogen.cc ('K') | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698