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

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

Issue 22562002: Convert FastNewClosureStub into hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Nit fixin Created 7 years, 3 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-instructions.h ('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 3843 matching lines...) Expand 10 before | Expand all | Expand 10 after
3854 3854
3855 if (offset == JSObject::kElementsOffset) { 3855 if (offset == JSObject::kElementsOffset) {
3856 portion = kElementsPointer; 3856 portion = kElementsPointer;
3857 } else if (offset == JSObject::kMapOffset) { 3857 } else if (offset == JSObject::kMapOffset) {
3858 portion = kMaps; 3858 portion = kMaps;
3859 } 3859 }
3860 return HObjectAccess(portion, offset, representation); 3860 return HObjectAccess(portion, offset, representation);
3861 } 3861 }
3862 3862
3863 3863
3864 HObjectAccess HObjectAccess::ForContextSlot(int index) {
3865 ASSERT(index >= 0);
3866 Portion portion = kInobject;
3867 int offset = Context::kHeaderSize + index * kPointerSize;
3868 ASSERT_EQ(offset, Context::SlotOffset(index) + kHeapObjectTag);
3869 return HObjectAccess(portion, offset, Representation::Tagged());
3870 }
3871
3872
3864 HObjectAccess HObjectAccess::ForJSArrayOffset(int offset) { 3873 HObjectAccess HObjectAccess::ForJSArrayOffset(int offset) {
3865 ASSERT(offset >= 0); 3874 ASSERT(offset >= 0);
3866 Portion portion = kInobject; 3875 Portion portion = kInobject;
3867 3876
3868 if (offset == JSObject::kElementsOffset) { 3877 if (offset == JSObject::kElementsOffset) {
3869 portion = kElementsPointer; 3878 portion = kElementsPointer;
3870 } else if (offset == JSArray::kLengthOffset) { 3879 } else if (offset == JSArray::kLengthOffset) {
3871 portion = kArrayLengths; 3880 portion = kArrayLengths;
3872 } else if (offset == JSObject::kMapOffset) { 3881 } else if (offset == JSObject::kMapOffset) {
3873 portion = kMaps; 3882 portion = kMaps;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
3994 break; 4003 break;
3995 case kExternalMemory: 4004 case kExternalMemory:
3996 stream->Add("[external-memory]"); 4005 stream->Add("[external-memory]");
3997 break; 4006 break;
3998 } 4007 }
3999 4008
4000 stream->Add("@%d", offset()); 4009 stream->Add("@%d", offset());
4001 } 4010 }
4002 4011
4003 } } // namespace v8::internal 4012 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698