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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 196343023: Fix TransitionElementsKindStub to handle non-JSArray objects correctly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix flag Created 6 years, 9 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/code-stubs.h ('k') | src/ia32/lithium-codegen-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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 638
639 639
640 template <> 640 template <>
641 HValue* CodeStubGraphBuilder<TransitionElementsKindStub>::BuildCodeStub() { 641 HValue* CodeStubGraphBuilder<TransitionElementsKindStub>::BuildCodeStub() {
642 info()->MarkAsSavesCallerDoubles(); 642 info()->MarkAsSavesCallerDoubles();
643 643
644 BuildTransitionElementsKind(GetParameter(0), 644 BuildTransitionElementsKind(GetParameter(0),
645 GetParameter(1), 645 GetParameter(1),
646 casted_stub()->from_kind(), 646 casted_stub()->from_kind(),
647 casted_stub()->to_kind(), 647 casted_stub()->to_kind(),
648 true); 648 casted_stub()->is_js_array());
649 649
650 return GetParameter(0); 650 return GetParameter(0);
651 } 651 }
652 652
653 653
654 Handle<Code> TransitionElementsKindStub::GenerateCode(Isolate* isolate) { 654 Handle<Code> TransitionElementsKindStub::GenerateCode(Isolate* isolate) {
655 return DoGenerateCode(isolate, this); 655 return DoGenerateCode(isolate, this);
656 } 656 }
657 657
658 HValue* CodeStubGraphBuilderBase::BuildArrayConstructor( 658 HValue* CodeStubGraphBuilderBase::BuildArrayConstructor(
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1430 return BuildRegExpConstructResult(length, index, input); 1430 return BuildRegExpConstructResult(length, index, input);
1431 } 1431 }
1432 1432
1433 1433
1434 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) { 1434 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) {
1435 return DoGenerateCode(isolate, this); 1435 return DoGenerateCode(isolate, this);
1436 } 1436 }
1437 1437
1438 1438
1439 } } // namespace v8::internal 1439 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698