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

Issue 6240002: Introducing MemoryMappedExternalResource for creating an external... (Closed)

Created:
9 years, 11 months ago by marklam
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Introducing MemoryMappedExternalResource for creating an external resource from a memory mapped file for creating strings. Committed as http://code.google.com/p/v8/source/detail?r=6400 and 6401 It was needed to fix types in platform-windows.cc and utils.cc to make it compilable under all supported platforms.

Patch Set 1 #

Total comments: 20

Patch Set 2 : '' #

Total comments: 12

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -3 lines) Patch
M src/platform.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M src/platform-freebsd.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M src/platform-linux.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M src/platform-macos.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M src/platform-nullos.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/platform-openbsd.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M src/platform-posix.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/platform-solaris.cc View 1 2 chunks +14 lines, -0 lines 0 comments Download
M src/platform-win32.cc View 1 3 chunks +35 lines, -3 lines 0 comments Download
M src/utils.cc View 1 2 1 chunk +92 lines, -0 lines 0 comments Download
M src/v8utils.h View 1 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
marklam
9 years, 11 months ago (2011-01-13 21:02:02 UTC) #1
mnaganov (inactive)
http://codereview.chromium.org/6240002/diff/1/src/platform-win32.cc File src/platform-win32.cc (right): http://codereview.chromium.org/6240002/diff/1/src/platform-win32.cc#newcode919 src/platform-win32.cc:919: Win32MemoryMappedFile(HANDLE file, HANDLE file_mapping, void* memory, Arg per line, ...
9 years, 11 months ago (2011-01-16 10:16:02 UTC) #2
marklam
http://codereview.chromium.org/6240002/diff/1/src/platform-win32.cc File src/platform-win32.cc (right): http://codereview.chromium.org/6240002/diff/1/src/platform-win32.cc#newcode919 src/platform-win32.cc:919: Win32MemoryMappedFile(HANDLE file, HANDLE file_mapping, void* memory, On 2011/01/16 10:16:02, ...
9 years, 11 months ago (2011-01-18 02:49:01 UTC) #3
mnaganov (inactive)
LGTM with comments addressed. http://codereview.chromium.org/6240002/diff/15001/src/utils.cc File src/utils.cc (right): http://codereview.chromium.org/6240002/diff/15001/src/utils.cc#newcode301 src/utils.cc:301: if (file_) { Please use ...
9 years, 11 months ago (2011-01-18 10:13:34 UTC) #4
marklam
http://codereview.chromium.org/6240002/diff/15001/src/utils.cc File src/utils.cc (right): http://codereview.chromium.org/6240002/diff/15001/src/utils.cc#newcode301 src/utils.cc:301: if (file_) { On 2011/01/18 10:13:34, Michail Naganov wrote: ...
9 years, 11 months ago (2011-01-18 17:32:47 UTC) #5
mnaganov (inactive)
9 years, 11 months ago (2011-01-19 10:50:51 UTC) #6
Landed: http://code.google.com/p/v8/source/detail?r=6386

On 2011/01/18 17:32:47, marklam wrote:
> http://codereview.chromium.org/6240002/diff/15001/src/utils.cc
> File src/utils.cc (right):
> 
> http://codereview.chromium.org/6240002/diff/15001/src/utils.cc#newcode301
> src/utils.cc:301: if (file_) {
> On 2011/01/18 10:13:34, Michail Naganov wrote:
> > Please use explicit comparison: if (file_ != NULL).
> > Sorry, I missed this in the first round.
> 
> Done.
> 
> http://codereview.chromium.org/6240002/diff/15001/src/utils.cc#newcode313
> src/utils.cc:313: if (file_) {
> On 2011/01/18 10:13:34, Michail Naganov wrote:
> > Ditto.
> 
> Done.
> 
> http://codereview.chromium.org/6240002/diff/15001/src/utils.cc#newcode329
> src/utils.cc:329: if (c & 0x80) {
> On 2011/01/18 10:13:34, Michail Naganov wrote:
> > Ditto.
> 
> Done.
> 
> http://codereview.chromium.org/6240002/diff/15001/src/utils.cc#newcode352
> src/utils.cc:352: if (err_context_length) {
> On 2011/01/18 10:13:34, Michail Naganov wrote:
> > Ditto.
> 
> Done.
> 
> http://codereview.chromium.org/6240002/diff/15001/src/utils.cc#newcode356
> src/utils.cc:356: abort();
> On 2011/01/18 10:13:34, Michail Naganov wrote:
> > OS::Abort();
> 
> Done.
> 
> http://codereview.chromium.org/6240002/diff/15001/src/v8utils.h
> File src/v8utils.h (right):
> 
> http://codereview.chromium.org/6240002/diff/15001/src/v8utils.h#newcode334
> src/v8utils.h:334: bool IsEmpty() const { return length_ == 0; }
> On 2011/01/18 10:13:34, Michail Naganov wrote:
> > is_empty() -- this is a getter-like operation.
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698