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

Side by Side Diff: src/d8.h

Issue 10459047: Clean up d8 ArrayBuffer implementation and fix bug in readbuffer: (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 8 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 | src/d8.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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 static i::OS::MemoryMappedFile* counters_file_; 376 static i::OS::MemoryMappedFile* counters_file_;
377 static i::Mutex* context_mutex_; 377 static i::Mutex* context_mutex_;
378 378
379 static Counter* GetCounter(const char* name, bool is_histogram); 379 static Counter* GetCounter(const char* name, bool is_histogram);
380 static void InstallUtilityScript(); 380 static void InstallUtilityScript();
381 #endif // V8_SHARED 381 #endif // V8_SHARED
382 static void Initialize(); 382 static void Initialize();
383 static void RunShell(); 383 static void RunShell();
384 static bool SetOptions(int argc, char* argv[]); 384 static bool SetOptions(int argc, char* argv[]);
385 static Handle<ObjectTemplate> CreateGlobalTemplate(); 385 static Handle<ObjectTemplate> CreateGlobalTemplate();
386 static Handle<Value> CreateExternalArrayBuffer(int32_t size);
387 static Handle<Value> CreateExternalArrayBuffer(const Arguments& args);
386 static Handle<Value> CreateExternalArray(const Arguments& args, 388 static Handle<Value> CreateExternalArray(const Arguments& args,
387 ExternalArrayType type, 389 ExternalArrayType type,
388 size_t element_size); 390 int32_t element_size);
389 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); 391 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data);
390 }; 392 };
391 393
392 394
393 } // namespace v8 395 } // namespace v8
394 396
395 397
396 #endif // V8_D8_H_ 398 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698