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

Side by Side Diff: test/cctest/test-api.cc

Issue 2826002: Fix Mac build of r4860... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2009 the V8 project authors. All rights reserved. 1 // Copyright 2007-2009 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 9653 matching lines...) Expand 10 before | Expand all | Expand 10 after
9664 break; 9664 break;
9665 case v8::kExternalIntArray: 9665 case v8::kExternalIntArray:
9666 case v8::kExternalUnsignedIntArray: 9666 case v8::kExternalUnsignedIntArray:
9667 case v8::kExternalFloatArray: 9667 case v8::kExternalFloatArray:
9668 return 4; 9668 return 4;
9669 break; 9669 break;
9670 default: 9670 default:
9671 UNREACHABLE(); 9671 UNREACHABLE();
9672 return -1; 9672 return -1;
9673 } 9673 }
9674 UNREACHABLE();
9675 return -1;
9674 } 9676 }
9675 9677
9676 9678
9677 template <class ExternalArrayClass, class ElementType> 9679 template <class ExternalArrayClass, class ElementType>
9678 static void ExternalArrayTestHelper(v8::ExternalArrayType array_type, 9680 static void ExternalArrayTestHelper(v8::ExternalArrayType array_type,
9679 int64_t low, 9681 int64_t low,
9680 int64_t high) { 9682 int64_t high) {
9681 v8::HandleScope scope; 9683 v8::HandleScope scope;
9682 LocalContext context; 9684 LocalContext context;
9683 const int kElementCount = 40; 9685 const int kElementCount = 40;
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
10916 const char* code = 10918 const char* code =
10917 "(function() {" 10919 "(function() {"
10918 " for (var i = 0; i < 2*16; i++) {" 10920 " for (var i = 0; i < 2*16; i++) {"
10919 " %_GetFromCache(0, 'a' + i);" 10921 " %_GetFromCache(0, 'a' + i);"
10920 " };" 10922 " };"
10921 " return 'PASSED';" 10923 " return 'PASSED';"
10922 "})()"; 10924 "})()";
10923 v8::internal::Heap::ClearJSFunctionResultCaches(); 10925 v8::internal::Heap::ClearJSFunctionResultCaches();
10924 ExpectString(code, "PASSED"); 10926 ExpectString(code, "PASSED");
10925 } 10927 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698