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

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: REBASE 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 | « src/hydrogen.cc ('k') | src/ia32/code-stubs-ia32.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 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 5975 matching lines...) Expand 10 before | Expand all | Expand 10 after
5986 static HObjectAccess ForJSArrayBufferViewByteOffset() { 5986 static HObjectAccess ForJSArrayBufferViewByteOffset() {
5987 return HObjectAccess::ForJSObjectOffset( 5987 return HObjectAccess::ForJSObjectOffset(
5988 JSArrayBufferView::kByteOffsetOffset); 5988 JSArrayBufferView::kByteOffsetOffset);
5989 } 5989 }
5990 5990
5991 static HObjectAccess ForJSArrayBufferViewByteLength() { 5991 static HObjectAccess ForJSArrayBufferViewByteLength() {
5992 return HObjectAccess::ForJSObjectOffset( 5992 return HObjectAccess::ForJSObjectOffset(
5993 JSArrayBufferView::kByteLengthOffset); 5993 JSArrayBufferView::kByteLengthOffset);
5994 } 5994 }
5995 5995
5996 static HObjectAccess ForGlobalObjectNativeContext() {
5997 return HObjectAccess(kInobject, GlobalObject::kNativeContextOffset);
5998 }
5999
5996 void PrintTo(StringStream* stream); 6000 void PrintTo(StringStream* stream);
5997 6001
5998 inline bool Equals(HObjectAccess that) const { 6002 inline bool Equals(HObjectAccess that) const {
5999 return value_ == that.value_; // portion and offset must match 6003 return value_ == that.value_; // portion and offset must match
6000 } 6004 }
6001 6005
6002 protected: 6006 protected:
6003 void SetGVNFlags(HValue *instr, bool is_store); 6007 void SetGVNFlags(HValue *instr, bool is_store);
6004 6008
6005 private: 6009 private:
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
7468 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7472 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7469 }; 7473 };
7470 7474
7471 7475
7472 #undef DECLARE_INSTRUCTION 7476 #undef DECLARE_INSTRUCTION
7473 #undef DECLARE_CONCRETE_INSTRUCTION 7477 #undef DECLARE_CONCRETE_INSTRUCTION
7474 7478
7475 } } // namespace v8::internal 7479 } } // namespace v8::internal
7476 7480
7477 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7481 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « 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