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

Side by Side Diff: src/factory.cc

Issue 14657003: Implementation of Uint8ClampedArray. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/contexts.h ('k') | src/runtime.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 break; 1085 break;
1086 1086
1087 case kExternalFloatArray: 1087 case kExternalFloatArray:
1088 typed_array_fun = native_context->float_array_fun(); 1088 typed_array_fun = native_context->float_array_fun();
1089 break; 1089 break;
1090 1090
1091 case kExternalDoubleArray: 1091 case kExternalDoubleArray:
1092 typed_array_fun = native_context->double_array_fun(); 1092 typed_array_fun = native_context->double_array_fun();
1093 break; 1093 break;
1094 1094
1095 case kExternalPixelArray:
1096 typed_array_fun = native_context->uint8c_array_fun();
1097 break;
1098
1095 default: 1099 default:
1096 UNREACHABLE(); 1100 UNREACHABLE();
1097 return Handle<JSTypedArray>(); 1101 return Handle<JSTypedArray>();
1098 } 1102 }
1099 1103
1100 CALL_HEAP_FUNCTION( 1104 CALL_HEAP_FUNCTION(
1101 isolate(), 1105 isolate(),
1102 isolate()->heap()->AllocateJSObject(typed_array_fun), 1106 isolate()->heap()->AllocateJSObject(typed_array_fun),
1103 JSTypedArray); 1107 JSTypedArray);
1104 } 1108 }
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 return Handle<Object>::null(); 1548 return Handle<Object>::null();
1545 } 1549 }
1546 1550
1547 1551
1548 Handle<Object> Factory::ToBoolean(bool value) { 1552 Handle<Object> Factory::ToBoolean(bool value) {
1549 return value ? true_value() : false_value(); 1553 return value ? true_value() : false_value();
1550 } 1554 }
1551 1555
1552 1556
1553 } } // namespace v8::internal 1557 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698