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

Side by Side Diff: src/full-codegen.cc

Issue 208503007: Revert "This implements allocating small typed arrays in heap." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/flag-definitions.h ('k') | src/heap.h » ('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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 } 998 }
999 999
1000 1000
1001 void FullCodeGenerator::EmitMaxSmi(CallRuntime* expr) { 1001 void FullCodeGenerator::EmitMaxSmi(CallRuntime* expr) {
1002 ASSERT(expr->arguments()->length() == 0); 1002 ASSERT(expr->arguments()->length() == 0);
1003 masm()->CallRuntime(Runtime::kMaxSmi, 0); 1003 masm()->CallRuntime(Runtime::kMaxSmi, 0);
1004 context()->Plug(result_register()); 1004 context()->Plug(result_register());
1005 } 1005 }
1006 1006
1007 1007
1008 void FullCodeGenerator::EmitTypedArrayMaxSizeInHeap(CallRuntime* expr) {
1009 ASSERT(expr->arguments()->length() == 0);
1010 masm()->CallRuntime(Runtime::kTypedArrayMaxSizeInHeap, 0);
1011 context()->Plug(result_register());
1012 }
1013
1014
1015 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) { 1008 void FullCodeGenerator::VisitBinaryOperation(BinaryOperation* expr) {
1016 switch (expr->op()) { 1009 switch (expr->op()) {
1017 case Token::COMMA: 1010 case Token::COMMA:
1018 return VisitComma(expr); 1011 return VisitComma(expr);
1019 case Token::OR: 1012 case Token::OR:
1020 case Token::AND: 1013 case Token::AND:
1021 return VisitLogicalExpression(expr); 1014 return VisitLogicalExpression(expr);
1022 default: 1015 default:
1023 return VisitArithmeticExpression(expr); 1016 return VisitArithmeticExpression(expr);
1024 } 1017 }
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1790 } 1783 }
1791 return true; 1784 return true;
1792 } 1785 }
1793 #endif // DEBUG 1786 #endif // DEBUG
1794 1787
1795 1788
1796 #undef __ 1789 #undef __
1797 1790
1798 1791
1799 } } // namespace v8::internal 1792 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698